I have a .csv dataset with many missing values, and I\'d like R to recognize them all the same way (the \"correct\" way) when I read the table in. I\'ve been using:
The
vs NA
just means that some of your columns are character and some are numeric, that's all. Absolutely nothing is wrong with that.
As Ben mentioned above, if some of your missing values in the csv are represented by a single period, .
, then you can specify a vector of values that should be treated as NA
s via:
na.strings=c("",".","NA")
as an argument to read.csv
.