pct: Convert proportions to percents

Description Usage Arguments Value Examples

View source: R/utils-pct.R

Description

This function converts decimals to precents and rounds them

Usage

1
pct(x, decimals = 1)

Arguments

x

numeric vector or data.frame

decimals

integer indicating how many decimal places to round to

Value

object of same class as x

Examples

1
2
vec <- c(0.4, 0.0265, 0.3234)
pct(vec, decimals = 1)

mattysimonson/exploratorium documentation built on Dec. 21, 2021, 3:49 p.m.