calcdx: Calculates a sensible interpolation increment.

Description Usage Arguments Value

View source: R/round.R

Description

When interpolating to a nearest increment, some increments are better than others usually something that ends in numbers like 1, 2 or 5. This function calculates an appropriate increment.

Usage

1
calcdx(dx, y = c(1, 2, 5))

Arguments

dx

Approximate rounding increment.

y

Nice endings for rounding increments.

Value

Nice rounding increment to be used by rounddx.


tunelipt/wutils documentation built on Nov. 5, 2019, 11:01 a.m.