Learn R Programming

define (version 0.2.9)

recode: Recode an encoded object.

Description

Recodes an encoded object.

Recodes an encoded character vector.

Usage

recode(x, ...)

# S3 method for character recode(x, ...)

Arguments

x

vector of strings that represent encodings

...

passed to sapply

Value

character

Methods (by class)

  • character: character method for recode

Details

specification creates a template spec object corresponding to a data frame. Not able to guess factor level decodes (labels) or column descriptions (e.g. SAS labels) it supplies defaults by repeating the argument values. These have value for development, but not for reporting. This function drops non-informative decodes.

See Also

encode