spss.get
invokes the read.spss
function in the
"data.frame"
. The label
function is used to
attach labels to individual variables instead of to the data frame as
done by read.spss
. By default, integer-valued variables are
converted to a storage mode of integer unless
force.single=FALSE
. Date variables are converted to RDate
variables. By default, underscores in names are converted to periods.spss.get(file, lowernames=FALSE, datevars = NULL,
use.value.labels = TRUE, to.data.frame = TRUE,
max.value.labels = Inf, force.single=TRUE, allow=NULL)
file
starting with 'http://'
.TRUE
to convert variable names to
lower caseread.spss
read.spss
; default is
TRUE
for spss.get
read.spss
FALSE
to prevent integer-valued
variables from being converted from storage mode double
to
integer
read.spss
,cleanup.import
,sas.get
w <- spss.get('/tmp/my.sav', datevars=c('birthdate','deathdate'))
Run the code above in your browser using DataLab