An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110818/0cf9f155/attachment.pl>
how to analysis a dataset with some missing value?
3 messages · Jie TANG, Daniel Malter, PIKAL Petr
if your vector of data is x, use x[x!=-9999]. Subseting entire data frames works analogously. HTH, Daniel -- View this message in context: http://r.789695.n4.nabble.com/how-to-analysis-a-dataset-with-some-missing-value-tp3751940p3752003.html Sent from the R help mailing list archive at Nabble.com.
Hi
my qustion is if my miss value in my dataset is -9999 for example : 1 3 21 33 -9999 23 33 -9999 how can I plot or analysis this dataset ignoring the missing value ?
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
-- TANG Jie [[alternative HTML version deleted]]
______________________________________________ R-help at 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.