decode.default: Decode an Object by Default

Description Usage Arguments Value See Also

Description

Decodes an object using the default method. Typically x is a character vector containing codes that can be extracted from encoding. Corresponding decodes are returned as a factor with levels of unique decodes. If encoding is NULL, it is replaced with an encoding such that levels and labels are both unique(x). Duplicate codes are ignored. Duplicate decodes are collapsed (combined to a single level).

Usage

1
2
## Default S3 method:
decode(x, encoding = NULL, ...)

Arguments

x

object

encoding

length one character that is itself encoded

...

passed arguments

Value

factor

See Also

Other decode: as_factor, decode.data.frame, decode


bergsmat/encode documentation built on May 12, 2019, 3:06 p.m.