Re: [R] creating selection vector with 2 attributes

2009-08-11 Thread Gavin Simpson
On Mon, 2009-08-10 at 16:57 -0700, PDXRugger wrote: > Please consider the following: > > IsEugene <- Hhdata$Puma %in% > PumsAreaNames..$PumaNums[(PumsAreaNames..$PumaNames == "Eugene")] I presume the .. before the $ are just a typo here? > > #-- > > I

[R] creating selection vector with 2 attributes

2009-08-10 Thread PDXRugger
Please consider the following: Puma=c(702, 702, 701, 702, 701, 702, 701, 702 ,702 ,702 ,701 ,702, 702, 701 ,701, 702, 701 ,702, 702, 702,701, 702 ,702 ,702 ,701) PumaNums=c(100 , 200 , 300 , 400 , 500 , 600 , 701 , 702 , 800 , 900 ,1000 ,1101, 1102, 1200 ,1301 ,1302 ,1303, 1304, 1305, 1306, 1307