Learn R Programming

REDCapCAST (version 24.12.1)

get_attr: Extract attribute. Returns NA if none

Description

Extract attribute. Returns NA if none

Usage

get_attr(data, attr = NULL)

Value

character vector

Arguments

data

vector

attr

attribute name

Examples

Run this code
attr(mtcars$mpg, "label") <- "testing"
do.call(c, sapply(mtcars, get_attr))
if (FALSE) {
mtcars |>
  numchar2fct(numeric.threshold = 6) |>
  ds2dd_detailed()
}

Run the code above in your browser using DataLab