View source: R/Linear_functions.R
lf_intersect | R Documentation |
Calculate intersecting point(s) from two linear function x
and linear function y
.
lf_intersect(x, ...)
x |
vector, matrix or data frame with slope and intercept |
... |
vector with slope and intercept |
Get the intersecting point of two linear Functions. If only x
is supplied, x
needs to be a matrix or data.frame containing both
linear functions. If x
and or y
have names you shall use the names (slope, intercept).
vector
Florian Wagner florian.wagner@wagnius.ch
x <- c(slope = 0.5, intercept = 1)
y <- c(slope = -1, intercept = 2)
lf_intersect(x,y)
rbind(x,y)|>lf_intersect()
matrix(c(x,y),ncol = 2, byrow = TRUE)|>lf_intersect()
matrix(c(0.2,-1,2,3),ncol = 2)|>lf_intersect()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.