Re: [R] Dealing with NA's in a data matrix

2011-09-06 Thread Daniel Malter
Please provide the data as self-contained code, as requested in the posting guide, so that helpers can directly paste it into R. Alternatively, you can provide the dilomaaethiops.txt. Best, Daniel Watching19 wrote: > > hello... I am trying to get this code to work, but as I get to the predict >

[R] Dealing with NA's in a data matrix

2011-09-05 Thread Adam Hesse
hello... I am trying to get this code to work, but as I get to the predict command, it displays an error due to the length of the data sets from the removal of the NA's. Here is the data, and the code that I am using so far, if you run it, you'll see the error pop up please help me to get aro

Re: [R] Dealing with NA's in a data matrix

2007-12-06 Thread Amit Patel
tHANKS FOR ALL YOUR SUGGESTIONS Kind Regards Amit Patel - Original Message From: Gregor Gorjanc <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Thursday, 6 December, 2007 12:06:00 AM Subject: Re: [R] Dealing with NA's in a data matrix Henrique Dallazuanna gmail.com>

Re: [R] Dealing with NA's in a data matrix

2007-12-05 Thread Gregor Gorjanc
Henrique Dallazuanna gmail.com> writes: > x[is.na(x)] <- 0 > > On 05/12/2007, Amit Patel yahoo.co.uk> wrote: > > Hi I have a matrix with NA value that I would like to convert these to a value of 0. > > any suggestions also library(gdata) x <- matrix(rnorm(16), nrow=4, ncol=4) x[1, 1] <- NA NA

Re: [R] Dealing with NA's in a data matrix

2007-12-05 Thread Henrique Dallazuanna
x[is.na(x)] <- 0 On 05/12/2007, Amit Patel <[EMAIL PROTECTED]> wrote: > Hi I have a matrix with NA value that I would like to convert these to a > value of 0. > any suggestions > > Kind Regards > Amit Patel > > > > > ___ > > ttp://uk.

[R] Dealing with NA's in a data matrix

2007-12-05 Thread Amit Patel
Hi I have a matrix with NA value that I would like to convert these to a value of 0. any suggestions Kind Regards Amit Patel ___ ttp://uk.promotions.yahoo.com/forgood/ [[alternative HTML version deleted]] ___