Learn R Programming

kerntools (version 1.2.0)

dummy_var: Levels per factor variable

Description

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

Usage

dummy_var(X)

Value

A list with the levels.

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).

Examples

Run this code
summary(showdata)
dummy_var(showdata)

Run the code above in your browser using DataLab