Learn R Programming

sjPlot (version 1.7)

read_spss: Import SPSS dataset as data frame into R

Description

Import data from SPSS, including NA's, value and variable labels.

Usage

read_spss(path, enc = NA, autoAttachVarLabels = FALSE,
  atomic.to.fac = FALSE, option = NULL)

Arguments

Value

A data frame containing the SPSS data. retrieve value labels with get_val_labels and variable labels with get_var_labels.

See Also

Examples

Run this code
# import SPSS data set
# mydat <- read_spss("my_spss_data.sav", enc="UTF-8")

# retrieve variable labels
# mydat.var <- get_var_labels(mydat)

# retrieve value labels
# mydat.val <- get_val_labels(mydat)

Run the code above in your browser using DataLab