Displaying 1 result from an estimated 1 matches for "jemni".
Did you mean:
jenni
2006 Aug 03
2
efficient way to make NAs of empty cells in a factor (or character)
Dear all,
I have some csv-files (originating from Excel-files) containing empty
cells. In my example file I have four variables of different classes,
each with some empty cells in the original csv-file:
> test <- read.csv2("test.csv", dec=".")
> test
id id2 x y
1 a 1 NA
2 b e NA 2.2
3 f 3 3.3
4 c g 4 4.4
> class(test$id)
[1]