corrupt_numeric: corrupt_numeric

Description Usage Arguments Value Author(s)

Description

A general numeric corruption function. Adds a value from the normal distribution (scaled by scale) to the value. A built in corruption function, ready to be passed to corrupt data. Does not need to be passed to corrupt.factory.

Usage

1
corrupt_numeric(vals, error_rate = 0.2, ...)

Arguments

error_rate

The probability of the value being corrupted. Default is 2.

val

The value to be corrupted. Should be numeric.

scale

The scale applied to the error. Default is 1.

Value

Either the value handed in, or the value + the generated error with probability error_rate.

Author(s)

Sam Murray<slmurray@andrew.cmu.edu>


Sam-Murray/RecordLinkUtil documentation built on Oct. 30, 2019, 11:48 p.m.