method-recode: Perform a recoding of a categorical variable

Description Usage Arguments Details Value Methods Author(s) See Also

Description

recode performs a recoding of an object inheriting of a CategoricalVariable object.

Usage

1
recode(object, ...)

Arguments

object

an object inheriting of the class CategoricalVariable

...

Enter each new value as an option name, and for each element give a vector specifying the old values to be merged to create the new value. If a vector of old values is numeric the function expects codes, and if character the function expects short value labels.

Details

A cross table is printed to allow the user checking the recoding performed correctly.

Value

A CategoricalVariable with the new coding scheme.

Methods

signature(object = "CategoricalVariable")

recode method for a CategoricalVariable object.

Author(s)

Emmanuel Rousseaux

See Also

cut


Rsocialdata0 documentation built on May 2, 2019, 5:55 p.m.