Interpolate multiple columns of a data.frame

Share:

Description

Interpolate multiple columns of a data.frame

Usage

1
approxm(data1, n, method = "linear")

Arguments

data1

a data.frame with columns for interpolation

n

the number of points to interpolate

method

the method to interpolate by, "linear" or "spline"

Value

Returns a data.frame of all data1 variables interpolated to n rows.

See Also

approx is the underlying function and has more options