perble: perble

View source: R/perble.R

perbleR Documentation

perble

Description

Extends 'table' by including proportions and percentages.

Usage

perble(x, tidy = TRUE, spround = FALSE)

Arguments

x

a scalar, atomic vector, or list.

tidy

by default, results are tidied into long data frame. Each group has its own row and there are four rows: group, count, proportion, and percent. If 'tidy = FALSE', a matrix is returned with count, proportion, and percent saved as row names. The group names are saved as column names.

spround

if TRUE, proportion and percent are rounded to the second decimal place.


camkay/panoply documentation built on Jan. 17, 2025, 6:31 a.m.