linear: A linear function

View source: R/common_mathematical_functions.R

linearR Documentation

A linear function

Description

This function evaluates a linear function.

Usage

linear(x, a, b)

Arguments

x

A numeric vector which defines the values at which the linear function will be evaluated.

a

A numeric input which defines the intercept.

b

A numeric input which defines the gradient.

Value

A number or a numeric vector.

Author(s)

Edward Lavender

Examples

linear(1:10, 5, 3)


edwardlavender/Tools4ETS documentation built on Nov. 29, 2022, 7:41 a.m.