f: Format x to have the specified number of decimal places

View source: R/utilities.R

fR Documentation

Format x to have the specified number of decimal places

Description

Format x to have supplied number of decimal places, have thousands seperated by commas. Taken from our Pacific Hake assessment: https://github.com/cgrandin/hake-assessment/blob/master/doc/r/r-functions/utilities.r

Usage

f(x, dec.points = 0)

Arguments

x

valuesTODO

dec.points

number of decimal places

Value

x with the specified number of decimal places, and comma for thousands

Author(s)

Chris Grandin


andrew-edwards/sizeSpectra documentation built on June 28, 2023, 7:09 p.m.