powered by
This is a explainer method for factor vector.
explainer
# S3 method for factor explainer(X, xname = NULL, ...)
a numeric (or integer) data type
a placeholder for variable name
other parameters required
Prints the following information on console:
vector name
type
number of distinct values
number of missing values
a frequency table and histogram. If counts of all the factor levels are less than half of length of X, then the histogram is scaled with maximum of 50
X
This method removes all the missing values in x before computing the summaries. This calls the method explainer.character
x
explainer.character
# NOT RUN { alphabets <- as.factor(sample(LETTERS[1:5], 50, replace = TRUE)) explainer(alphabets) rm(alphabets) # }
Run the code above in your browser using DataLab