round2: round2

Description Usage Arguments

View source: R/SupportFunctions.R

Description

rounding in R rounds to nearest even number (eg 0.5 rounds to 0), this function does "normal" rounding (eg 0.5 rounds to 1)

Usage

1
round2(x, n = 0)

Arguments

x

number to be rounded

n

decimal place to round to (n=0 rounds to nearest whole number, n=1 rounds to the nearest tenth, n=-1 rounds to the nearest tens digit, etc).


mrparker909/redNMix documentation built on April 4, 2020, 12:24 a.m.