drop_category: Validate and coerce any object as a non-categorical variable.

View source: R/experimental.R

drop_categoryR Documentation

Validate and coerce any object as a non-categorical variable.

Description

[Experimental] Converts a vector object to a non-categorical object, typically a column in a data frame. The categories come from non-missing values present in the object and are suppressed from an associated data dictionary (when present).

Usage

drop_category(x)

Arguments

x

object to be coerced.

Value

A R object.

Examples

{

head(iris[['Species']])
head(drop_category(iris[['Species']]))

}


madshapR documentation built on May 29, 2024, 7:43 a.m.