get_observed_mean: Obtains the observed mean from input 'data'

View source: R/padding_test.R

get_observed_meanR Documentation

Obtains the observed mean from input data

Description

Obtains the observed mean from input data

Usage

get_observed_mean(data, num_digits, max_length, omit_05)

Arguments

data

A dataframe of right-aligned digits table, preferably from combine_by_columns

num_digits

The total number of digits aligned from the right to be analyzed. Defaulted to 5, meaning analyzing digit place 1s to 10ks.

max_length

The length of the longest numbers considered. Defaulted to 8.

omit_05

Whether to omit 0 or both 0 and 5. If omit both 0 and 5, pass in c(0,5) or c(5,0); if omit only 0 pass in 0 or c(0); if omit neither, pass in NA. Default to NA.

Value

A table of observed mean for the dataset data


jlederluis/digitanalysis documentation built on Nov. 5, 2023, 11:46 a.m.