Description Usage Arguments Details Examples
Returns a list of points which interpolate given data points. Similar to approx.
1 2 | approx.cos(x, y = NULL, xout, n = 50, yleft, yright, rule = 1,
ties = mean)
|
x, y |
numeric vectors giving the coordinates of the points to be interpolated. |
xout |
an optional set of numeric values specifying where interpolation is to take place. |
n |
If xout is not specified, interpolation takes place at n equally
spaced points spanning the interval [ |
yleft |
the value to be returned when input |
yright |
the value to be returned when input |
rule |
an integer (of length 1 or 2) describing how interpolation is to
take place outside the interval [ |
ties |
Handling of tied |
This function is based on and functions similarly to approx and spline .
1 2 3 4 | y <- rnorm(10)
x <- 1:10
plot(x, y)
lines(approx.cos(x, y, n=200))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.