drop_category {madshapR}R 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']]))

}


[Package madshapR version 1.1.0 Index]