floor: A function to extend the functionaliy of the base::floor...

Description Usage Arguments Details Value Examples

Description

A function to extend the functionaliy of the base::floor function

Usage

1
floor(x, digits = 0)

Arguments

x

A numeric

digits

The number of digits to the left of the decimal place to round to

Details

Usually used for purchase data when you need to floor the cents

Value

A numeric

Examples

1
2
3
4
x <- 99.9999
floor(x, 2)
# is equivalent to:
base::floor(100 * x)

McClellandLegge/netmathtools documentation built on May 7, 2019, 4:55 p.m.