1.4 Stastistical packages

The haven package provides functions for importing data from a variety of statistical packages.

library(haven)

# import data from Stata
Salaries <- read_dta("data/salaries.dta")

# import data from SPSS
Salaries <- read_sav("data/salaries.sav")

# import data from SAS
Salaries <- read_sas("data/salaries.sas7bdat")