Description Usage Arguments Value
The get.spss.file
is the standard function to import a SPSS database (in a .sav
file) into a Rsocialdata
database. The function is based on the read.spss
function. The read.spss
function is run two times to get both coding and labels of both variables and values. The measure of each imported variable (categorical or scale) is automatically detected. If a variable has all its values (valid cases and missing values) labelised, the variable will be set as a categorical variable. If a variable has at least one of its values (valid cases or missing values) with no label, the variable will be set as a scale variable.
1 2 3 4 5 |
file |
the full name of the file you want to import |
datadir |
the directory where your SPSS file is. If missing the working directory is used. |
variables |
the list of variables you want to import. If missing all variables in the SPSS file are imported. |
tsvar |
a vector containing the names of variables having to be converted in the |
ovar |
a vector containing the names of variables having to be converted in the |
wvar |
a vector containing the names of variables having to be converted in the |
use.coding.order |
a character, either |
max.value.labels |
depreciated. Will be soon removed. |
savingName |
a character. By setting this argument you produce an export in .Rdata of the SPSS file with the name given. |
lowernames |
a logical. If |
name |
a character. The name of the data base. If |
description |
a character. A description of the database. |
exportPDF |
a logical. If |
reencode |
a logical: should character strings be re-encoded to the current locale. Default is |
a Rsocialdata-class
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.