View source: R/Linear_functions.R
| lf_lf | R Documentation |
f(x) = y = mx+bCalculate y for given linear function(s).
The parameter(s) slope m and the intercept b can be supplied either by a set(s) of parameter cbind(m,b) or by a vector of parameter = m and a second (additional) argument vector of ... = b.
lf_lf(x, parameter, ...)
x |
vector |
parameter |
Either vector, matrix or data.frame with parameter set |
... |
vector of intercept(s) |
The function calculates y for given vector x with the parameter,(...) supplied.
vector or matrix of y values foreach m,b definition
Florian Wagner florian.wagner@wagnius.ch
lf_lf(-5:5,0.8,3.265)
lf_lf(-5:5,c(1,3))
df <- data.frame(x = c(0.5,1,-0.5), y = c(1,0,-1))
lf_lf(-5:5,df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.