counts_observed: Find the frequency of terminal digit pairs occuring in the...

View source: R/digit_pair_test.R

counts_observedR Documentation

Find the frequency of terminal digit pairs occuring in the data being analyzed

Description

Find the frequency of terminal digit pairs occuring in the data being analyzed

Usage

counts_observed(digitdata, data_columns, omit_05, min_length, indexes = NA)

Arguments

digitdata

A object of class DigitAnalysis.

data_columns

The names of numeric columns of data to be analyzed. Default can be 'all', where using all data columns in numbers df in digitdata; an array of column names, as characters; a single column name, as character.

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.

min_length

The minimum length of the numbers to be analyzed in digit pair test. Must be an integer >= 2. Default to 3.

indexes

The indexes of the rows to be analyzed in the data. Used to facilitate break_out option. Default to NA, meaning using all rows.

Value

An array of [# pairs, # not pairs]


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