Learn R Programming

benford.analysis (version 0.1.5)

p.these.digits: Probability of a digit sequence

Description

It calculates the probability of a digit sequence "d".

Usage

p.these.digits(d)

Arguments

d

a digit sequence, like 1234 ou 999999.

Value

The probability of the sequence d.

Examples

Run this code
# NOT RUN {
p.these.digits(1) # 0.30103
p.these.digits(11) # 0.03778856
p.these.digits(999999) # 4.342947e-07
# }

Run the code above in your browser using DataLab