infoCategory: Information for Categorical Variables

Description Usage Arguments Value Examples

View source: R/infoCategory.R

Description

Information for Categorical Variables

Usage

1
infoCategory(data, numFactors = 20)

Arguments

data

A dat frame with variables

numFactors

possible number of factors for a character variables

Value

a data frame with summary for categorical variables

Examples

1
2
3
4
5
6
7
df <- data.frame(NormalFactor = as.factor(sample(LETTERS[2:10],100,replace = T)),
 VeryLargeFactors = as.factor(sample(LETTERS,100,replace = T)),
 NormalCharacters = sample(LETTERS[2:20],100,replace = T),
 VeryLargeCharacters = sample(c(LETTERS,letters),100,replace = T))

infoCategory(df)
infoCategory(df,length(c(LETTERS,letters)))

jkapila/vcvn documentation built on Aug. 29, 2017, 12:45 a.m.