round2: Round2

View source: R/round2.R

round2R Documentation

Round2

Description

Round using conventional rounding, where .5 always gets rounded up.

Usage

round2(x, n)

Arguments

x

vector

n

digits to round to

Examples

round2(0.05, 1)

StatisticsNZ/er.helpers documentation built on Oct. 2, 2023, 7:24 a.m.