I have a file where the missings are coded as NA or blank. how can I tell R
to read the data set and to consider the missings NA or a blank.
I tried the following
data<-read.table("data.txt", sep='\t', header=T, na.strings=c("NA",""))
is it correct? I am new to R and I am not sure if R is condisering the
blanks as missings in the above.
Thanks for the help
--
View this message in context:
http://www.nabble.com/missings-tp22354037p22354037.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.