Skip to content
Prev 305876 / 398502 Next

where are these NAs coming from?

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: