It gives the value of the linear function defined from two points (x1,y1) and (x2,y2) at any x

1 | ```
lin2(x1, y1, x2, y2, x)
``` |

`x1` |
the x - abscissa of the first point |

`y1` |
the y - ordinate of the first point |

`x2` |
the x - abscissa of the second point |

`y2` |
the y - ordinate of the second point |

`x` |
the x - point where we compute the value of the linear function |

No more details required.

It returns the value of the linear function from (x1,y1) to (x2,y2) at an arbitrary x.

The value of a linear function is built by this way for R to be faster than a two-vectors call.

Demetris T. Christopoulos.

There are no references.

1 2 3 4 5 6 7 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.