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
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)
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