createSpssSyntaxSnippet: Prepare SPSS syntax to transfer variable and value labels...

Description Usage Arguments Value Author(s)

Description

Usually, variable and value labels are lost if ASCII data is imported into SPSS. Variable and value labels normally must be reestablished using SPSS syntax file. The function prepares an SPSS syntax snippet from the variable and value lables stored as attributes in R.

Usage

1

Arguments

dat

R data frame. Variable and value labels must be stored in attributes as provided, for example, by the function convertLabel.

file

Character string with the name of syntax file which should be created.

keep

Logical: Create value labels even if the value does not occur in the data? For example, if keep = TRUE, createSpssSyntaxSnippet will write labels also for males, even if the data only contains females.

Value

No return, the SPSS syntax file is written to disk.

Author(s)

Sebastian Weirich


eatModel documentation built on May 2, 2019, 6:49 p.m.