explainer.factor: Explain method for factor data types

Description Usage Arguments Details Value Examples

View source: R/explainer.R

Description

This is a explainer method for factor vector.

Usage

1
2
## S3 method for class 'factor'
explainer(X, xname = NULL, ...)

Arguments

X

a numeric (or integer) data type

xname

a placeholder for variable name

...

other parameters required

Details

This method removes all the missing values in x before computing the summaries. This calls the method explainer.character

Value

Prints the following information on console:

Examples

1
2
3
alphabets <- as.factor(sample(LETTERS[1:5], 50, replace = TRUE))
explainer(alphabets)
rm(alphabets)

analyzer documentation built on July 1, 2020, 10:02 p.m.