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 around the initial value.

dir

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

Value

A new value


NicolasJBM/manacc documentation built on Jan. 16, 2020, 1:42 p.m.