Linear interpolation is the process of approximating intermediate values given an assumption that the ranges of missing data look roughly like straight lines.
Linear interpolation is largely used for its simplicity and is typically more effective given a greater density of data. The more complex the underlying relationship of the quantities involved, the less likely linear interpolation is to provide a good value estimates.
In scientific software r for statistical computing and graphics, function approx
performs 1D linear interpolation.