summarize_by: summarize_by

Description Usage Arguments Value

View source: R/acc_functions.R

Description

summarizes the data levels in a column of categorical data and optionally provides a barplot output

Usage

1
2
summarize_by(col, display = F, barPlotTitle = "Counts across types",
  left_margin_factor = 1)

Arguments

col

Vector, the categorical values to be summarized

display

A flag indicating if the data should be displayed in a bar plot.

barPlotTitle

The title that should be given to the bar plot

left_margin_factor

A numerical factor expanding the left margin of the bar plot. Used to adjust in situations where there is insufficient room to display the text of each bar's label

Value

A two column data.frame with columns "types", the different levels and "counts", the different numer of times each level occurs


biodev/packageDir documentation built on Nov. 4, 2019, 7:19 a.m.