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 input which defines the data for 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/utils.add documentation built on Dec. 14, 2024, 8:11 a.m.