View source: R/deprecated_names2.R
names2item | R Documentation |
Set names of items as long labels and vice versa.
names2item(
data,
chars = NULL,
prefix = "",
char_sep = "_",
char_weight = c("(-)", "(+)"),
char_prefix_end = ": "
)
names2label(data)
data |
A data frame |
chars |
If not NULL, only the first n chars og the long label will be applied. |
prefix |
A character string or vector of character strings defining a prefix. May include "scale", "subscale", "subscale2", "index", "reverse", "weight", or "najme". |
char_sep |
Character with separator between prefix information. |
char_weight |
Character vector of length two with signs for negative and positive weights. |
char_prefix_end |
Character with separator between prefix and item. |
names2item renames to the long label. names2label renames to the short label.
A renamed data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.