Learn R Programming

polymapR (version 1.0.17)

linterpol: linterpol ***********************************************************

Description

linear interpolation: returns the y values matching the x values (vector) on the line through points pnt1 and pnt2 (both are vectors of length 2) possible error if both X-coordinates equal not checked or caught

Usage

linterpol(x, pnt1, pnt2)

Arguments

x

x-coordinate for which corresponding y-coordinate is sought.

pnt1

Point 1

pnt2

Point 2