is_labelled: Test if a vector is labelled (i.e. if 'label' attribute...

Description Usage Arguments Value Examples

View source: R/is_labelled.R

Description

Test if a vector is labelled (i.e. if label attribute exists.)

Usage

1

Arguments

.x

A vector

Value

logical, length 1

Examples

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)

zawmtun/slingr documentation built on Dec. 23, 2021, 9:14 p.m.