Can you please explain below statement:
if(grep("specdata", directory) == 1) {
directory <- ("./specdata/")
print(directory)
}
I have doubt in specifically understanding if(grep("specdata", directory) == 1).. Is it comparing "specdata" with the argument directory and if it's the same then directory being assigned to the current working directory?? Please reply asap.
Can you please explain below statement:
if(grep("specdata", directory) == 1) {
directory <- ("./specdata/")
print(directory)
}
I have doubt in specifically understanding if(grep("specdata", directory) == 1).. Is it comparing "specdata" with the argument directory and if it's the same then directory being assigned to the current working directory?? Please reply asap.