rename_items: Rename items Rename items based on dic information.

Description Usage Arguments Value

View source: R/rename_item.R

Description

Rename items Rename items based on dic information.

Usage

1
2
3
4
5
6
7
8
rename_items(
  data,
  pattern = "label",
  chars = NULL,
  char_sep = "_",
  char_weight = c("(-)", "(+)"),
  char_prefix_label = ": "
)

Arguments

data

A data frame

pattern

A character string or vector of character strings defining a prefix. May include "label", "scale", "subscale", "subscale_2", "reverse", "weight", or "name".

chars

If not NULL, only the first n chars og the long label will be applied.

char_sep

Character with seperator between prefix information.

char_weight

Character vector of length two with signs for negative and positive weights.

Value

A renamed data frame


jazznbass/scaledic documentation built on Sept. 20, 2021, 7:43 p.m.