rename_items: Rename items

View source: R/rename_item.R

rename_itemsR Documentation

Rename items

Description

Rename items based on dic information.

Usage

rename_items(
  data,
  pattern = "{item_label}",
  max_chars = NULL,
  chars = max_chars
)

Arguments

data

A data frame

pattern

A character string with the syntax of the glue function (see glue()).

max_chars, chars

If not NULL, only the first n chars of the resulting label will be applied.

Value

A renamed data frame

Examples

ex_itrf  |>
  rename_items(pattern = "{reverse}{name}: {label}")  |>
  names()


jazznbass/scaledic documentation built on July 19, 2023, 12:50 a.m.