Learn R Programming

lares (version 4.1)

freqs: Frequencies Calculations and Plot

Description

This function lets the user group, count, calculate percentages and cumulatives. It also plots if needed. Perfect for inside with dplyr's pipes.

Usage

freqs(vector, ..., plot = FALSE, rm.na = FALSE)

Arguments

vector

Data.frame

...

Variables. Variables you wish to process. Order matters.

plot

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

rm.na

Boolean. Remove NA values in the plot? (not filtered for numerical output; use na.omit() or filter() if needed)