mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 13:17:30 +02:00
31 lines
376 B
Markdown
31 lines
376 B
Markdown
|
|
# Set attributes for named attribute. Appends if attr is NULL
|
||
|
|
|
||
|
|
Set attributes for named attribute. Appends if attr is NULL
|
||
|
|
|
||
|
|
## Usage
|
||
|
|
|
||
|
|
``` r
|
||
|
|
set_attr(data, label, attr = NULL, overwrite = FALSE)
|
||
|
|
```
|
||
|
|
|
||
|
|
## Arguments
|
||
|
|
|
||
|
|
- data:
|
||
|
|
|
||
|
|
vector
|
||
|
|
|
||
|
|
- label:
|
||
|
|
|
||
|
|
label
|
||
|
|
|
||
|
|
- attr:
|
||
|
|
|
||
|
|
attribute name
|
||
|
|
|
||
|
|
- overwrite:
|
||
|
|
|
||
|
|
overwrite existing attributes. Default is FALSE.
|
||
|
|
|
||
|
|
## Value
|
||
|
|
|
||
|
|
vector with attribute
|