encode: Represent Ordered Lists and Pairs as Strings

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.

Getting started

Package details

AuthorTim Bergsma
MaintainerTim Bergsma <bergsmat@gmail.com>
LicenseGPL-3
Version0.3.6
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("encode")

Try the encode package in your browser

Any scripts or data that you put into this service are public.

encode documentation built on May 2, 2019, 6:08 a.m.