set_decimal: Set a numeric ('x') to ('k') decimal places

Description Usage Arguments Value Examples

View source: R/beama_utils.R

Description

Set a numeric (x) to (k) decimal places

Usage

1

Arguments

x

Numeric object to be formated

k

Integer representing the number of decimal places

Value

Formatted numeric number

Examples

1
set_decimal(1.7511,2) # 1.75

eamoakohene/beamaUtils documentation built on Oct. 30, 2021, 11:22 p.m.