wiggle: Return a new value within plus of minus delta percent of the...

Description Usage Arguments Value

View source: R/wiggle.R

Description

Return a new value within plus of minus delta percent of the initial value, adjusting roundings based on the initial magnitude.

Usage

1
wiggle(x, delta = 0.2, dir = 0)

Arguments

x

Numeric. Value around which to wiggle

delta

Numeric. percentage of variation arounf the initial value.

dir

Numeric. -1 for negative, 1 for positive, 0 for either.

Value

A new value


NicolasJBM/simulacR documentation built on Dec. 25, 2019, 5:20 a.m.