# approxExtrap

From Hmisc v4.0-3
by Frank E Harrell Jr

##### Linear Extrapolation

Works in conjunction with the `approx`

function to do linear
extrapolation. `approx`

in R does not support extrapolation at
all, and it is buggy in S-Plus 6.

##### Usage

```
approxExtrap(x, y, xout, method = "linear", n = 50, rule = 2, f = 0,
ties = "ordered", na.rm = FALSE)
```

##### Arguments

##### Details

Duplicates in `x`

(and corresponding `y`

elements) are removed
before using `approx`

.

##### Value

a vector the same length as `xout`

##### See Also

##### Examples

```
# NOT RUN {
approxExtrap(1:3,1:3,xout=c(0,4))
# }
```

*Documentation reproduced from package Hmisc, version 4.0-3, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.