Last answered:

10 Oct 2023

Posted on:

30 Mar 2023

0

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)
Instructor
Posted on:

07 Apr 2023

0

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)
Posted on:

10 Oct 2023

0

Elitsa,

Thank you.

Submit an answer