BeyondBenford (version 1.0)

obs.numb.dig: Frequency of each figure at a given position

Description

The function returns the frequencies of each figure at a given position in the considered dataset.

Usage

obs.numb.dig(dat, dig = 1)

Arguments

dat

The considered dataset, a data frame containing non-zero real numbers.

dig

The chosen position of the digit (from the left).

Value

A vector containing the frequencies of each figure in ascending order. Its length is 9 if dig=1 (the figures ranging from 1 to 9) and 10 if dig>1 (the figures ranging from 0 to 9).

Examples

Run this code
# NOT RUN {
data(census)
obs.numb.dig(census, dig=2)

# }

Run the code above in your browser using DataLab