dummy_var: Levels per factor variable

View source: R/normalization.R

dummy_varR Documentation

Levels per factor variable

Description

This function gives the categories ("levels") per categorical variable ("factor").

Usage

dummy_var(X)

Arguments

X

A matrix, or a data.frame containing factors. (If the columns are of any other class, they will be coerced into factors anyway).

Value

A list with the levels.

Examples

summary(showdata)
dummy_var(showdata)

kerntools documentation built on April 3, 2025, 7:52 p.m.