[R] Matching Up Values

hadley wickham h.wickham at gmail.com
Fri Jul 18 03:36:33 CEST 2008


On Fri, Jul 18, 2008 at 5:09 AM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
>
> On 18/07/2008, at 8:42 AM, Steve Murray wrote:
>
>        <snip>
>
>> So what I'm looking to do is, 'pad out' the shorter file, by adding in the
>> rows with those that are 'missing' from the longer file (ie. if a particular
>> coordinate isn't present in the shorter file but is in the 'longer/master'
>> file), and having 'zero' as its Population Density value (column C).
>
>        Aaaaaaarrrrrrghhhhhhhhhh!!! Zero is not the same as a missing value.
>        Surely to gumdrops you should say ``having NA as its Population
> Density value''.
>
>        Elsewise you are lying about your data.

Unless table one contains _all_ of the population locations - and
implies that everywhere has population 0.

Hadley


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



More information about the R-help mailing list