Reading CSV data with R, in column 11 have data in the formats "1,022.00" and "516.00" and they must be "numerics" or "double"
dados201702 <- read.csv("dataset.csv",
header = TRUE,
sep = "\t",
dec = ".",
colClasses = c("character",
"character",
"character",
"character",
"character",
"character",
"character",
"character",
"character",
"character",
"numeric",
"character"))
I want to import column 11 as numeric or double however error occurs:
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, scan() expected 'a real', got '1,022.00'