Reading .sav file into R
You can also use the 'haven' package to read in the SPSS file. This package has much more consistency over the foreign package, with regard to syntax. Also, the resulting data frame will have both the 'tbl_df' and 'tbl' classes so printing will be improved if dplyr is loaded.
library(haven)
path = file.path("C:/", "Folder", "dataset.sav")
dataset = read_sav(path)
You can use the library foreign
to import data from .sav
(SPSS) format.
library(foreign)
data <- read.spss("C:/PathToFile/dataset.sav", to.data.frame=TRUE)