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/get_attr.md
Normal file
38
reference/get_attr.md
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# Extract attribute. Returns NA if none
|
||||
|
||||
Extract attribute. Returns NA if none
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
get_attr(data, attr = NULL)
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- data:
|
||||
|
||||
vector
|
||||
|
||||
- attr:
|
||||
|
||||
attribute name
|
||||
|
||||
## Value
|
||||
|
||||
character vector
|
||||
|
||||
## Examples
|
||||
|
||||
``` r
|
||||
attr(mtcars$mpg, "label") <- "testing"
|
||||
do.call(c, sapply(mtcars, get_attr))
|
||||
#> $mpg.label
|
||||
#> [1] "testing"
|
||||
#>
|
||||
if (FALSE) { # \dontrun{
|
||||
mtcars |>
|
||||
numchar2fct(numeric.threshold = 6) |>
|
||||
ds2dd_detailed()
|
||||
} # }
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue