make_key_value: Generate a key value table with unique key for a set of text

View source: R/tidymodl.R

make_key_valueR Documentation

Generate a key value table with unique key for a set of text

Description

Given a vector of characters, this will return a data frame of a unique key column (of, where possible, 3 characters) and value column listing the unique elements of the original text.

Usage

make_key_value(text)

Arguments

text

The text to abbreviate and create a key value table for

Value

df A ⁠Key Value⁠ table

Examples

data(wb)
make_key_value(wb$indicator)

tidymodlr documentation built on Sept. 11, 2024, 9:18 p.m.