Learn R Programming

encode (version 0.3.6)

Represent Ordered Lists and Pairs as Strings

Description

Interconverts between ordered lists and compact string notation. Useful for capturing code lists, and pair-wise codes and decodes, for text storage. Analogous to factor levels and labels. Generics encode() and decode() perform interconversion, while codes() and decodes() extract components of an encoding. The function encoded() checks whether something is interpretable as an encoding. If a vector has an encoded 'guide' attribute, as_factor() uses it to coerce to factor.

Copy Link

Version

Install

install.packages('encode')

Monthly Downloads

466

Version

0.3.6

License

GPL-3

Maintainer

Last Published

April 25th, 2019

Functions in encode (0.3.6)

decodes

Extract Decodes from an Object
encoded.default

Check If Default Object is Encoded
encode

Encode Factor-like Levels and Labels as a Simple String
encode.character

Encode Character.
encoded

Check If Object is Encoded
codes.default

Extract Codes by Default from an Object
decode.data.frame

Decode Data Frame.
decode.default

Decode an Object by Default
decode

Decode an Object
codes

Extract Codes from an Object
as_factor

Coerce to Factor using Encoding if Present
encode.default

Encode Default.
encode.list

Encode a List
decodes.default

Extract Decodes by Default from an Object