error in file
Title
Question
captaincyTwo <- read.csv("CaptaincyData2.csv")
View(captaincyTwo)
i entered the above code but i'm getting the following error:
> captaincyTwo <- read.csv("CaptaincyData2.csv")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file 'CaptaincyData2.csv': No such file or directory
> View(captaincyTwo)
Error in View : object 'captaincyTwo' not found
i have also set the working directory for the same
R Merging-and-Importing-Data 07-08 min 20-30 sec
Answers:
R cannot find the 'CaptaincyData2.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.
Login to add comment