Skip to contents

Benford Analysis

Usage

benford(data, var, digits = 2)

Arguments

data

The data as a data frame.

var

a string naming the variable from data that contains the continuous values used for the report

digits

Number of first digits to analyze (default: 2)

Value

A results object containing:

results$explanationa html
results$summarya table
results$todoa html
results$texta preformatted
results$text2a preformatted
results$reportSentencea html
results$plotan image

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$summary$asDF

as.data.frame(results$summary)