Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

nlinc1905/benfordsLaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

benfordsLaw

An R package to apply Benford's first digit, first two digit, and last two digit tests. To install, ensure that the dependency ggplot2 library is installed first, or run the commands below.

install.packages(c('ggplot2', 'devtools')) #Installs dependencies
library(devtools)
setwd("C:/Users/User/Desktop") #Assumes package is unzipped to desktop
install("benfordsLaw")
library(benfordsLaw)

The package has 6 functions: one for Benford's first digit test, another for Benford's first two digit test, another for Benford's last two digit test, and a plotting function for each test.

?benfordFirstDigit
?benfordFirstTwoDigit
?benfordLastTwoDigit
?plotFD
?plotF2D
?plotL2D

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages