Description Usage Arguments Value Examples
Test if a vector is labelled (i.e. if label
attribute exists.)
1 | is_labelled(.x)
|
.x |
A vector |
logical, length 1
1 2 3 4 5 6 | ## Not run:
dat <- data.frame(age = c(23, 45))
dat <- set_labels(dat, "age", "Age of participant")
is_labelled(datt$age) # return TRUE
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.