Learn R Programming

lares (version 4.8.4)

summer: Sum Calculations and Plot

Description

This function lets the user group, sum, calculate percentages and cumulatives. It also plots results if needed. Tidyverse friendly.

Usage

summer(df, ..., fun = sum, which = NA, top = NA, plot = FALSE)

Arguments

df

Data.frame

...

Variables. Variables you wish to process. Order matters. If no variables are passed, the whole data.frame will be considered

fun

Function (sum by default)

which

Character vector. Select variables to sum. If not set, all numeric variables will be returned

top

Integer. Filter and plot the n largest n values by group

plot

Boolean. Do you want to see a plot? Three variables tops.

See Also

Other Exploratory: corr_cross(), corr_var(), crosstab(), df_str(), distr(), freqs_df(), freqs_list(), freqs_plot(), freqs(), lasso_vars(), missingness(), plot_cats(), plot_df(), plot_nums(), tree_var(), trendsRelated()

Other Visualization: distr(), freqs_df(), freqs_list(), freqs_plot(), freqs(), gg_bars(), gg_pie(), noPlot(), plot_chord(), plot_survey(), plot_timeline(), theme_lares2(), theme_lares(), tree_var()