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
>
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
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>
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
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.
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]]
___
6 matches
Mail list logo