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