Skip to contents

Uses purrr's attr_getter() function to create a function to extract labels,m usually questions from Qualtrics data loaded into R from haven.

Usage

get_labs(x)

Arguments

x

A labelled R object

Value

Labels from R object

Examples

label_example <- structure(
  c(1:4),
  label = "I'm a label"
  )
get_labs(label_example)
#> [1] "I'm a label"