Skip to content
Back to formatted view

Raw Message

Message-ID: <CAM_vju=1mWFxJe6PPnHY+aVuF+x8XANU1Qwb-Y-rminCU+Jinw@mail.gmail.com>
Date: 2012-09-19T17:54:56Z
From: Sarah Goslee
Subject: where are these NAs coming from?
In-Reply-To: <87k3vp2977.fsf@gnu.org>

Well, you have no reproducible example, but I suspect either of these
will fix it:

locals <- z[z$country == mycountry & !is.na(z$country),]

locals <- subset(z, country == mycountry)

Sarah

On Wed, Sep 19, 2012 at 1:50 PM, Sam Steingold <sds at gnu.org> wrote:
> I see this:
> --8<---------------cut here---------------start------------->8---
>> length(which(is.na(z$language)))
> [1] 0
>> locals <- z[z$country == mycountry,]
>> length(which(is.na(locals$language)))
> [1] 229
> --8<---------------cut here---------------end--------------->8---
> where are those locals without the language coming from?!
>
-- 
Sarah Goslee
http://www.functionaldiversity.org