Learn R Programming

ProjectTemplate (version 0.3-5)

spss.reader: Read an SPSS file with a...

Description

Read an SPSS file with a .sav file extension.

Usage

spss.reader(data.file, filename, variable.name)

Arguments

data.file
The name of the data file to be read.
filename
The path to the data set to be loaded.
variable.name
The name to be assigned to in the global environment.

Value

  • No value is returned; this function is called for its side effects.

Details

This function will load the specified SPSS file into memory. It will convert the resulting list object into a data frame before inserting the data set into the global environment.

Examples

Run this code
library('ProjectTemplate')

#spss.reader('example.sav', 'data/example.sav', 'example')}

Run the code above in your browser using DataLab