Learn R Programming

biometrics (version 1.0.1)

interp.a: Linear interpolation for three data of x and y only works if the first y is missing.

Description

Linear interpolation

Usage

interp.a(xs, ys)

Value

Output description (simple).

Arguments

xs

Vector number of size 3

ys

Vector number of size 3, with first position empty or NA

Author

Christian Salas.

Details

Linear interpolation for three data of x and y only works if the first y is missing.

Examples

Run this code
x<-c(1,2,3)
y<-c(NA,4,6)
interp.a(x,y)

Run the code above in your browser using DataLab