Skip to content

how to analysis a dataset with some missing value?

3 messages · Jie TANG, Daniel Malter, PIKAL Petr

#
Hi
thanks
Use NA instead of -9999 and things will get better

x<-as.numeric(read.table(textConnection("1 3 21 33 -9999  23  33 -9999")))
y<- sample(x, 1000, replace=T)
plot(y)


y[y== -9999]<-NA
plot(y)
 
Regards
Petr
http://www.R-project.org/posting-guide.html