percent_table: Prints a percent table.

Description Usage Arguments

Description

Prints a percent table.

Usage

1

Arguments

round

integer. How many digits you want to round percentages to. Default no rounding.

na.rm

logical. Remove all the NA, "N/A", or "" values. On by default.

var

characer. The name of the variable you want percent breakdown for.

data.

The data to be displayed. This is assumed to either be a vector or a three column melted dataframe, using reshape2 <http://cran.r-project.org/web/packages/reshape2/index.html>.


peterhurford/surveytools documentation built on May 25, 2019, 1:51 a.m.