check.labs: Check variable and value labels

View source: R/check_labs.R

check.labsR Documentation

Check variable and value labels

Description

Helper function to determine if there is a defined variable label and value labels. Also checks if there are more unique values than defined value labels.

Usage

check.labs(vari)

Arguments

vari

Variable to be checked

Value

list with four elements:

  • var_lab - variable label (NA if not defined)

  • val_lab - data frame with values and value labels, NA if not defined

  • val_lab_ok - logical. FALSE if there are more values than value labels, otherwise TRUE. NA if value labels are not defined.


mrajter/rajter.flex documentation built on July 30, 2024, 1:31 a.m.