last.two.digits: Extracts the last two digits from the data

Description Usage Arguments Value

View source: R/internal.functions-new-code-2.R

Description

It extracts the last two digits from the data.

This function is used by the main function of the package benford to extract the ast two digits of the data.

Usage

1
last.two.digits(data, sign = "positive")

Arguments

data

a numeric vector.

sign

The default value for sign is "positive" and it analyzes only data greater than zero. There are also the options "negative" and "both" that will analyze only negative values or both positive and negative values of the data, respectively. For large datasets with both positive and negative numbers, it is usually recommended to perform a separate analysis for each group, for the incentives to manipulate the numbers are usually different.

Value

A data.frame with the data and the last digits.


carloscinelli/benford.analysis documentation built on Aug. 26, 2019, 8:08 a.m.