Learn R Programming

condvis (version 0.5-1)

interpolate: Interpolate

Description

Interpolate a numeric or factor vector.

Usage

interpolate(x, ...)

# S3 method for numeric interpolate(x, ninterp = 4L, ...)

# S3 method for integer interpolate(x, ninterp = 4L, ...)

# S3 method for factor interpolate(x, ninterp = 4L, ...)

# S3 method for character interpolate(x, ninterp = 4L, ...)

Arguments

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.