Skip to contents

A simple convention for the determination of the appropriate number of decimals will be applied, e.g., n

  • < 100: no decimal

  • < 1000: 1 decimals

  • > 1001: 2 decimals

Usage

get_number_of_decimals(n)

Arguments

n

Number of observations (e.g., participants in a study)

Value

Integer the appropriate number of decimals, based on sample size (n)

Author

Bjoern Buedenbender

Examples

get_number_of_decimals(n = 153)
#> [1] 1