# NOT RUN {
set.seed(1)
x <- rnorm(100)
# Digit analysis against Benford's law
distr.test(x, check = 'first', reference = 'benford')
# Digit analysis against custom distribution
distr.test(x, check = 'last', reference = rep(1/9, 9))
# }
Run the code above in your browser using DataLab