round_consultancy: Rounding to match the SimcypConsultancy report template...

View source: R/rounding.R

round_consultancyR Documentation

Rounding to match the SimcypConsultancy report template requirements

Description

If the number is > 100, round to the ones place. If the number is less, round to 3 significant figures. Output is character data.

Usage

round_consultancy(x)

Arguments

x

Value

Returns character data with the appropriate number of digits

Examples

round_consultancy(1239.236)
round_consultancy(0.23513)
round_consultancy(c(1239.236, 0.23513))


shirewoman2/Consultancy documentation built on Feb. 18, 2025, 10 p.m.