View source: R/exported_functions.R
get_f_from_points | R Documentation |
get_f_from_points()
returns a function that can be used to generate any points on a given line.
get_f_from_points(a, b)
a |
a vector containing two (and only two) points corresponding to x and y. |
b |
a vector containing two (and only two) points corresponding to x and y. |
a function that returns $y$ for any $x$ on the line.
get_f_from_points(c(0, 0), c(1, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.