Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding setting the directory #3

Open
Prakhar1008 opened this issue Mar 26, 2018 · 2 comments
Open

Regarding setting the directory #3

Prakhar1008 opened this issue Mar 26, 2018 · 2 comments

Comments

@Prakhar1008
Copy link

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.

@richatripathi17
Copy link

if(grep("specdata", directory) == 1) // This statement is used to compare "specdata" in current working directory
And other two statements are used to store data in directory vector that are present in specdata folder and print it.

I hope this will help you out..
Issue No. #3

@ApoorvaUmesh
Copy link

it is finding the first occurence of Specdata in Directory (if such a file exists), if yes then assigning "./specdata/" path to directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants