round2: Proper rounding of values

View source: R/spine_chart_utils.R

round2R Documentation

Proper rounding of values

Description

Proper rounding of values

Usage

round2(val, dps)

Arguments

val

numeric value to round

dps

numeric, number of decimal places

Details

function taken from this link (https://stackoverflow.com/questions/12688717/round-up-from-5)


PublicHealthEngland/fingertipscharts documentation built on Sept. 21, 2023, 10:31 p.m.