util_round_to_decimal_places {dataquieR} | R Documentation |
Round number of decimal places to 3 if the values are between 0.001 and 9999.999 otherwise (if at least one value of the vector is outside this limits) use scientific notation for all the values in a vector
Description
Round number of decimal places to 3 if the values are between 0.001 and 9999.999 otherwise (if at least one value of the vector is outside this limits) use scientific notation for all the values in a vector
Usage
util_round_to_decimal_places(x, digits = 3)
Arguments
x |
a numeric vector to be rounded |
digits |
a numeric value indicating the number of desired decimal places |
See Also
Other data_management:
util_assign_levlabs()
,
util_check_data_type()
,
util_check_group_levels()
,
util_compare_meta_with_study()
,
util_dichotomize()
,
util_fix_merge_dups()
,
util_merge_data_frame_list()
,
util_rbind()
,
util_remove_na_records()
,
util_replace_hard_limit_violations()
,
util_study_var2factor()
,
util_table_of_vct()
[Package dataquieR version 2.5.1 Index]