[R] Handling missing data

Vassilis Golfinopoulos vassilis.golfinopoulos at gmail.com
Mon Sep 21 16:11:52 CEST 2009


Consider this sample dataset (displayed [1:3, 1:3]):

          T1053B     T1102A      T1129A
AKT1  -0.02412174  0.1986057          NA
AURKA -0.37109748 -0.4418542  0.04967051
BRAF  -0.14589269 -0.1590310 -0.35483226

> is.na(dataset[1, 3])
TRUE

library(impute)
library(GeneMeta)

imputed.dataset <- impute.knn(as.matrix(dataset))
CRASH!


2009/9/21 Greg Snow <Greg.Snow at imail.org>:
> Help us to help you, show us the code that you tried, what you expected, and what you saw.
>
> Does "using NA condition"  mean:
>
>> x == NA
>
> Which does not work
>
> Or
>
>> is.na(x)
>
> Which should.
>
> -----Original Message-----
> From: "premmad" <mtechprem at gmail.com>
> To: "r-help at r-project.org" <r-help at r-project.org>
> Sent: 9/21/09 12:38 AM
> Subject: [R]  Handling missing data
>
>
> I have to remove missing data both in character and numeric datatype.I tried
> using NA condition but it is not working ,please help me to solve this.
> --
> View this message in context: http://www.nabble.com/Handling-missing-data-tp25530192p25530192.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>
> ______________________________________________
> 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.
>




More information about the R-help mailing list