Resolved: LOADING THE THE pokmon dataset into R
Please in this lesson the pokmon dataset was loaded using the following command:
my.pok <- read.table("pokRdex_comma.csv",
sep = ', ' ,
header = TRUE
stringsAsFactors = FALSE)
Unfortunately when I type and execute the command I get the following:
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file 'pokRdex_comma.csv': No such file or directory
Please help.
Thank you
2 answers ( 1 marked as helpful)
Hi Maurice,
thanks for reaching out! I believe the actual name of the csv uses a dash, instead of an underscore. Could you try the following and let me know if it works:
my.pok <- read.table("pokRdex-comma.csv",
sep = ', ' ,
header = TRUE
stringsAsFactors = FALSE)
Elitsa,
Thank you.