Last answered:

09 Apr 2020

Posted on:

08 Apr 2020

0

R programming

having error while importing data set code- my.pok <- read.table("pokRdex_comma.csv",
sep = ',',
header = TRUE,
stringsAsFactors = FALSE)
my.pokmy.pok <- read.table("pokRdex_comma.csv",
sep = ',',
header = TRUE,
stringsAsFactors = FALSE)
my.pok

error- Error: object 'my.pok' not found
1 answers ( 0 marked as helpful)
Instructor
Posted on:

09 Apr 2020

0

Hi Viraj,
I think the problem is caused because you have a typo when you're reading your csv file. You've written it as:
“pokRdex_comma.csv”with an underscore _
Instead, you should try:
“pokRdex-comma.csv” with a dash -

Best,
Eli

Submit an answer