mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 13:17:30 +02:00
Deploying to gh-pages from @ agdamsbo/REDCapCAST@db75c3313e 🚀
This commit is contained in:
parent
bc2e23a272
commit
0b30252598
171 changed files with 7009 additions and 602 deletions
38
reference/suffix2label.md
Normal file
38
reference/suffix2label.md
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# Transfer variable name suffix to label in widened data
|
||||
|
||||
Transfer variable name suffix to label in widened data
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
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](https://rdrr.io/r/base/strsplit.html)
|
||||
|
||||
- attr:
|
||||
|
||||
label attribute. Default is "label"
|
||||
|
||||
- glue.str:
|
||||
|
||||
glue string for new label. Available variables are "label" and
|
||||
"suffixes"
|
||||
|
||||
## Value
|
||||
|
||||
data.frame
|
||||
Loading…
Add table
Add a link
Reference in a new issue