get_number_of_decimals: Determine Number of Decimals by a Simple Convention (Based on...

View source: R/get_number_of_decimals.R

get_number_of_decimalsR Documentation

Determine Number of Decimals by a Simple Convention (Based on N)

Description

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(s)

Bjoern Buedenbender

Examples

get_number_of_decimals(n = 153)

Buedenbender/datscience documentation built on Nov. 21, 2022, 11:14 a.m.