rounding_w_zeroes: Round a Value, Keeping Trailing Zeroes

Description Usage Arguments Value See Also Examples

View source: R/rounding_w_zeroes.R

Description

When pasting labels, R will not display trailing zeroes; this is a way to work around it. The result can be returned to a numeric class if desired. It should be noted that if the digit input exceeds the actual digits in the value, it will still paste a trailing zero.

Usage

1
rounding_w_zeroes(num, input_digits)

Arguments

num

Numeric; value(s) to round

input_digits

Numeric; the number of digits which to preserve

Value

Character versions rounded to the number of digits specified, including trailing zeroes

See Also

Other miscellaneous functions: adjust_timezone(), ambient_temperature(), apply_date_tags(), apply_hour_tags(), column_dt(), filter_df(), group_stad(), organize_stad(), unit_convert(), wrangle_meta()

Examples

1
2
rounding_w_zeroes(10.501, 2)
rounding_w_zeroes(10.591, 2)

gmcginnis/AirVizR documentation built on Dec. 20, 2021, 11:49 a.m.