Skip to content

encode

Represent Ordered Lists and Pairs as Strings

v0.3.7 · Feb 17, 2026 · GPL-3

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.

Downloads

677

Last 30 days

5534th

1.8K

Last 90 days

8K

Last year

Trend: +6.1% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (4)

Dependency Network

Dependencies Reverse dependencies metaplot nonmemica spec yamlet encode

Version History

new 0.3.7 Mar 10, 2026
updated 0.3.7 ← 0.3.6 diff Feb 17, 2026
updated 0.3.6 ← 0.3.4 diff Apr 24, 2019
updated 0.3.4 ← 0.3.3 diff Mar 28, 2018
updated 0.3.3 ← 0.3.2 diff Jan 2, 2018
updated 0.3.2 ← 0.3 diff Nov 29, 2017
updated 0.3 ← 0.2 diff Apr 13, 2017
new 0.2 Feb 17, 2017