I am doing just like tutorial instructions but it didn't work.
it shows this


# Clear R workspace
> rm(list = ls() ) 

> # Declare a variable to store the data frame
> captaincyOne = read.csv("CaptaincyData.csv")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
  cannot open file 'CaptaincyData.csv': No such file or directory


but I saved all the code files in my directory.

R Merging-and-Importing-Data 07-08 min 10-20 sec 16-08-21, 9:25 p.m. tanishagoyal

Answers:

R cannot find the 'CaptaincyData.csv' file in your current working directory. Kindly check your current working directory by making use of the "getwd()" function and make sure that the file is present there. You can also change the working directory by making use of the "setwd()" function.
17-08-21, 4:10 p.m. chrl3hr5@gmail.com


Click here to reply/comment online