search for: hhdata

Displaying 2 results from an estimated 2 matches for "hhdata".

Did you mean: hdata
2009 Aug 04
2
Re ferencing columns and pulling selected data
...UE,TRUE,TRUE,FALSE,TRUE,TRUE,FALSE,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,TRUE,FALSE,FALSE, FALSE,TRUE,FALSE,TRUE,FALSE,FALSE,FALSE,TRUE,FALSE,TRUE,FALSE,FALSE) PrsnData<-cbind(PrsnSerialno,PrsnAge,IsHead) HhSerialno<-c(735,1147,2019,4131,4217,4629,4822,5979,6128,7004,7438,9402,10115,11605,12693) HhData<-cbind(HhSerialno) What i would like to do is to add a age column to HhData that would correspond to the serial number and which is also the oldest person in the house, or what corresponds to "TRUE"(designates oldest person). The TRUE false doesnt have to be considered but is prefera...
2009 Aug 10
1
creating selection vector with 2 attributes
...uot;Portland", "Portland", "Washington", "Portland", "Portland") PumsAreaNames=data.frame(PumaNums,PumaNames) HhSerialno<-c( 38 , 71 , 80, 100, 100 ,106, 126 ,152 ,157 ,181 ,182 ,210 ,244, 267 ,296 ,361, 387, 399, 430 ,434 ,468 ,480 ,483 ,486 ,532) Hhdata<-data.frame(HhSerialno,Puma) IsEugene <- Hhdata$Puma %in% PumsAreaNames..$PumaNums[(PumsAreaNames..$PumaNames == "Eugene")] #------------------------------------------ Is Eugene returns a true/false for whether the Hhdata$Puma attribute matches 'Eugene". I would also...