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

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Wed, 5 Dec 2007 17:51:16 -0200

 x[is.na(x)] <- 0

On 05/12/2007, Amit Patel <amitpatel_ak_at_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
>
> Kind Regards
> Amit Patel
>
>
>
>
> ___________________________________________________________
>
> ttp://uk.promotions.yahoo.com/forgood/
> [[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.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
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.
Received on Wed 05 Dec 2007 - 20:04:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Dec 2007 - 00:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.