linearFun: Linear function

View source: R/sp.env.functions.R

linearFunR Documentation

Linear function

Description

A simple linear function of the form

ax+b

Usage

linearFun(x, a, b)

Arguments

x

a numeric value or vector

a

a numeric value or vector

b

a numeric value or vector

Value

a numeric value or vector resulting from the function

Author(s)

Boris Leroy leroy.boris@gmail.com

Maintainer: Boris Leroy leroy.boris@gmail.com

See Also

logisticFun, quadraticFun

Examples

x <- 1:100
y <- linearFun(x, a = 0.5, b = 0)
plot(y ~ x, type = "l")

virtualspecies documentation built on Sept. 27, 2023, 1:06 a.m.