Learn R Programming

foreign (version 0.2-8)

read.spss: Read an SPSS data file

Description

read.spss reads a file stored by the SPSS save and export commands and returns a list.

Usage

read.spss(file)

Arguments

file
character variable with the name of the file to read.

Value

  • A list with one component for each variable in the saved data set.

Details

This uses modified code from the PSPP project for reading the SPSS formats.

Examples

Run this code
read.spss("datafile")

Run the code above in your browser using DataLab