decode.default {encode} | R Documentation |
Decode an Object by Default
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
## 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
[Package encode version 0.3.6 Index]