| freqs_df {lares} | R Documentation |
Plot for All Frequencies on Dataframe
Description
This function lets the user analize data by visualizing the frequency of each value of each column from a whole data frame.
Usage
freqs_df(
df,
max = 0.9,
min = 0,
novar = TRUE,
plot = FALSE,
top = 30,
quiet = FALSE,
save = FALSE,
subdir = NA
)
Arguments
df |
Data.frame |
max |
Numeric. Top variance threshold. Range: (0-1]. These variables will be excluded |
min |
Numeric. Minimum variance threshold. Range: [0-1). These values will be grouped into a high frequency (HF) value |
novar |
Boolean. Remove no variance columns? |
plot |
Boolean. Do you want to see a plot? Three variables tops |
top |
Integer. Plot most relevant (less categories) variables |
quiet |
Boolean. Keep quiet? (or show variables exclusions) |
save |
Boolean. Save the output plot in our working directory |
subdir |
Character. Into which subdirectory do you wish to save the plot to? |
Value
Plot when plot=TRUE and data.frame with grouped frequency results
when plot=FALSE.
See Also
Other Frequency:
freqs_list(),
freqs_plot(),
freqs()
Other Exploratory:
corr_cross(),
corr_var(),
crosstab(),
df_str(),
distr(),
freqs_list(),
freqs_plot(),
freqs(),
lasso_vars(),
missingness(),
plot_cats(),
plot_df(),
plot_nums(),
tree_var()
Other Visualization:
distr(),
freqs_list(),
freqs_plot(),
freqs(),
noPlot(),
plot_chord(),
plot_survey(),
plot_timeline(),
tree_var()
Examples
data(dft) # Titanic dataset
freqs_df(dft)
freqs_df(dft, plot = TRUE)