Skip to contents

Checks that all specified factor columns exist in the data frame and are not empty.

Usage

validate_factors(data, factors)

Arguments

data

A data frame

factors

Character vector of factor column names

Value

TRUE invisibly if valid, otherwise throws an error