问题描述:

example: I have path: "C:/Users/home/Documents/Coursera/R Programming/Week 2/rprog-data-specdata/specdata" which I use as parameter to the function I created. How can I replace a function call to pass as parameter specdata instead of full path?

网友答案:

Find the last occurence of '/' and pass a pointer to that point to the function that you want to get specdata.

Tell me if you are having trouble implementing this, should be pretty simple.

相关阅读:
Top