benford: The counts and percentage of first digits for all data...

Description Usage Format Source Examples

Description

This data has to counts by first digit for the election, waitlist, and cities data

Usage

1

Format

A data frame with columns:

data

The variable is character. The data object used to calculate digit counts

country

The variable is character. The location or group within each data object

first

The variable is character. The first digit number

n

The variable is integer. The count of numbers that started with that digit

percent

The variable is numeric. The percent of the total for each data and country group

benford_percent

The variable is numeric. The expected propoprtion under Benford's law

Source

https://github.com/midnightradio/cse140-data-programming, https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5942457/, and https://simplemaps.com/data/us-cities

Examples

1
2
3
4
## Not run: 
benford

## End(Not run)

byuidatascience/data4benfords documentation built on May 6, 2020, 10:10 p.m.