get_attr {REDCapCAST} | R Documentation |
Extract attribute. Returns NA if none
Description
Extract attribute. Returns NA if none
Usage
get_attr(data, attr = NULL)
Arguments
data |
vector |
attr |
attribute name |
Value
character vector
Examples
attr(mtcars$mpg, "label") <- "testing"
do.call(c, sapply(mtcars, get_attr))
## Not run:
mtcars |>
numchar2fct(numeric.threshold = 6) |>
ds2dd_detailed()
## End(Not run)
[Package REDCapCAST version 25.3.2 Index]