percent: Return the percentages for the levels of a factor

View source: R/convenience_functions.R

percentR Documentation

Return the percentages for the levels of a factor

Description

Return a compatible vector of length nlevels(x) + 1 to print the percentages of each level of a factor

Usage

percent(x)

Arguments

x

A factor

Value

A nlevels(x) + 1 length vector of percentages


MaximeWack/desctable documentation built on April 6, 2022, 5:38 a.m.