Skip to contents

Hard-errors if any column still carries the haven_labelled class, i.e. a raw labelled column read from a .dta/.sav that was never recoded or stripped. A composable primitive used by check_schema and reusable by bespoke checkers.

Usage

assert_no_labelled(data)

Arguments

data

A data frame or tibble.

Value

TRUE, invisibly.

See also

Examples

assert_no_labelled(data.frame(x = 1:3))