pct: Percent

Description Usage Arguments Value

Description

Appends a percent sign to provided numerical value. Rounding is carried out according to value passed in decimals formal argument (defaults to value specified in panderOptions('digits')).

Usage

1
2
pct(x, digits = panderOptions("digits"), type = c("percent", "%",
  "proportion"), check.value = TRUE)

Arguments

x

a numeric value that is to be rendered to percent

digits

an integer value indicating number of decimal places

type

a character value indicating whether percent or proportion value was provided (partial match is allowed)

check.value

perform a sanity check to see if provided numeric value is correct (defaults to TRUE)

Value

a character value with formatted percent


rapportools documentation built on May 1, 2019, 8:18 p.m.