Learn R Programming

DLMtool (version 5.2)

LinInterp: Linear interpolation of a y value at level xlev based on a vector x and y

Description

Linear interpolation of a y value at level xlev based on a vector x and y

Usage

LinInterp(x, y, xlev, ascending = F, zeroint = F)

Arguments

x

A vector of x values

y

A vector of y values (identical length to x)

xlev

A the target level of x from which to guess y

ascending

Are the the x values supposed to be ordered before interpolation

zeroint

is there a zero-zero x-y intercept?