vc_categories: Validates If Correct Categories Used

View source: R/vc_categories.R

vc_categoriesR Documentation

Validates If Correct Categories Used

Description

Validates If Correct Categories Used

Usage

vc_categories(data, x, levels = "the levels", ...)

Arguments

data

A data frame.

x

Column name from data (character string).

levels

Levels of the category.

...

ignored.

Value

Returns a vc classed list object.

Examples

vc_categories(mtcars, 'cyl', c(6, 8))
str(vc_categories(mtcars, 'cyl', c(6, 8)))

steventsimpson/valiData documentation built on Jan. 27, 2023, 2:11 p.m.