Displaying 1 result from an estimated 1 matches for "gunlaw".
Did you mean:
dunlap
2009 Mar 03
1
SPSS data import: problems & work arounds for GSS surveys
...k
without accessing the data.
> idat <- spss.system.file("gss2006.sav")
> show(idat)
SPSS system file 'gss2006.sav'
with 5137 variables and 4510 observations
A subset function can access the particular variables from the data.
> idat2 <- subset(idat, select=c(gunlaw))
> idat2
Data set with 4510 observations and 1 variables
gunlaw
1 OPPOSE
2 *NAP
3 *NAP
4 FAVOR
5 FAVOR
6 *NAP
7 FAVOR
8 *NAP
9 FAVOR
10 FAVOR
11 FAVOR
12 FAVOR
13 FAVOR
14 *NAP
15 *NAP
16 *NAP
17 FAVOR
18 *NAP
19 FAVOR
20 *NAP
21 *NAP
22 OPPOSE
23 *...