[R] unique not working

Nicole Ford nicoleford74 at gmail.com
Thu Mar 28 15:49:59 CET 2013


i am using mac OSX 10.7.5, running R version 2.15.2 (2012-10-26) -- "Trick or Treat"

when i do:
uncountry <- unique(wvsAB[,7])
wvsAB$numcountry <- match(wvsAB$country, uncountry)
"unstate" isn't attaching.

> library(base)
> uncountry <- unique(wvsAB[,7])
> wvsAB$numcountry <- match(wvsAB$country, uncountry)
> ls(wvsAB)
 [1] "age"        "country"    "cpi"        "dem"        "diversity"  "educ"       "gender"     "income"    
 [9] "net"        "numcountry" "trust" 

thanks in advance for any help.





More information about the R-help mailing list