Skip to content
Prev 172704 / 398506 Next

missings

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