Learn R Programming

desctable (version 0.1.0)

percent: 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