changeSPSSformat {eatGADS}R Documentation

Change SPSS format.

Description

Change the SPSS format of a variable as part of a GADSdat or all_GADSdat object.

Usage

changeSPSSformat(GADSdat, varName, format)

Arguments

GADSdat

GADSdat object imported via eatGADS.

varName

Character string of variable names.

format

A single string containing the new SPSS format, for example 'A25' or 'F10'.

Details

Applied to a GADSdat or all_GADSdat object, this function is a wrapper of getChangeMeta and applyChangeMeta.

Value

Returns the GADSdat object with changed meta data..

Examples

pisa2 <- changeSPSSformat(pisa, varName = "idstud",
                        format = "F10.0")



[Package eatGADS version 1.1.0 Index]