Interpolate a numeric or factor vector.
1 2 3 4 5 6 7 8 9 10 11 12 13 | interpolate(x, ...)
## S3 method for class 'numeric'
interpolate(x, ninterp = 4L, ...)
## S3 method for class 'integer'
interpolate(x, ninterp = 4L, ...)
## S3 method for class 'factor'
interpolate(x, ninterp = 4L, ...)
## S3 method for class 'character'
interpolate(x, ninterp = 4L, ...)
|
x |
A numeric or factor vector. |
... |
Not used. |
ninterp |
The number of points to interpolate between observations. It should be an even number for sensible results on a factor/character vector. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.