Re: [R] Melt (reshape) question

From: hadley wickham <h.wickham_at_gmail.com>
Date: Wed, 16 Jul 2008 06:19:41 +0800

> Am
> I right in thinking that this *should* also remove the -99s (NA
> values)? Because at present, the lower end ot the file looks like this:

Judging from your output, the -99's haven't been converted to NA's - you can fix this (and the 88s) by doing:

PopDens[PopDens == -99] <- NA
PopDens[PopDens == 88] <- NA

Hadley

-- 
http://had.co.nz/

______________________________________________
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 Tue 15 Jul 2008 - 22:26:24 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 Tue 15 Jul 2008 - 23:32:04 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.

list of date sections of archive