search for: pctoadd_

Displaying 1 result from an estimated 1 matches for "pctoadd_".

2010 Jun 03
2
Subsetting for unwanted values
...first attempt doesnt work because i have unequal lengths. The second attempt doesnt give me an the right answer. Pc<-c("Res","Com","Ind","Os","Mix","Gov","Rur") Pc.X<-c("Com","Ind","Mix") PcToAdd_<-Pc[Pc!=Pc.X] #Doesnt Work AND PcToAdd_<-subset(Pc.X,Pc.X %in% Pc) #Works but doesnt get me what i want I am looking a return of PcToAdd_ <- "Res" "Os" "Gov" "Rur" This has got to be a simple answer. Thanks -- View this message in context: h...