round_percent: Round vector of number to percentages

Description Usage Arguments Value Author(s) See Also Examples

Description

Round vector of number to percentages

Usage

1
round_percent(x, decimals = 0L, ties = c("random", "last"))

Arguments

x

A numeric vector with non-negative values.

decimals

An integer giving the number of decimals that are used

ties

A string that is either 'random' (the default) or 'last'. Determines how to break ties. Random is random, last prefers to break ties at the last position

Value

Returns a vector of numeric values of the same length as x.

Author(s)

Jay Achar

See Also

statr

Examples

1
round_percent(x = c(10, 10, 20), 0L)

JayAchar/statr documentation built on May 10, 2019, 2:40 p.m.