Hello,

I have a dataset which I am calling RB09.  

I am trying to match the questions in the code book with variable codes.  

It is not very intuitive.

example:

 names(RB09)
  [1] "ea1"        "eaf1"       "eaf1a"      "eaf2"       "eaf2_7"    
  [6] "eaf3"       "eafimpun"   "eafunpun"   "evimpmar"   "evfutpro"  
 [11] "ecjoh"      "eaf4a"      "eaf5"       "eaf6a"      "eaf6b"     
 [16] "eaf6c"      "eaf6d"      "eaf6e"      "eaf7a"      "eaf7b" 

(there are over 800 of these)

questions looks like this:

B16a. Most people in this country
        Trusts          
        Neutral         
        Does not trust  
however, there is no variable B16a.  there is one that is "ssb16a" but as you 
can see:

> levels(RB09$ss16a)
[1] "yes"       "no"        "dont know" "na"        "dk"   

The levels are not the same.  SO I don't think this is correctly matched.

Is there an easy way to find out what -for example- which question "eaf6c"
goes to?  

Also, I know there is a way to search key words and find the variables which 
match.  I have done this before and can't find the code.

Any direction would help.  Thanks.

~Nicole

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to