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


desctable documentation built on March 24, 2022, 5:07 p.m.