mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 13:17:30 +02:00
562 B
562 B
Transfer variable name suffix to label in widened data
Transfer variable name suffix to label in widened data
Usage
suffix2label(
data,
suffix.sep = "____",
attr = "label",
glue.str = "{label} ({paste(suffixes,collapse=', ')})"
)
Arguments
-
data:
data.frame
-
suffix.sep:
string to split suffix(es). Passed to strsplit
-
attr:
label attribute. Default is "label"
-
glue.str:
glue string for new label. Available variables are "label" and "suffixes"
Value
data.frame