Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getDigits

Gets the data starting with some specific digits


Description

It subsets the original data according to the leading digits.

Usage

getDigits(bfd, data, digits)

Arguments

bfd

an object of class "Benford". See benford.

data

the original data of the analysis.

digits

the first digits to get.

Value

The the original data starting only with the leading digits.

Examples

data(census.2000_2010) #gets data

#generates benford object
c2010 <- benford(census.2000_2010$pop.2010) 

#subsets data starting with digits 10 and 25
digits.10.25 <- getDigits(c2010, census.2000_2010, c(10,25))

benford.analysis

Benford Analysis for Data Validation and Forensic Analytics

v0.1.5
GPL-3
Authors
Carlos Cinelli
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.