Learn R Programming

weyl (version 0.0-7)

constant: The constant term

Description

The constant of a weyl object is the coefficient of the term with all zeros.

Usage

constant(x, drop = TRUE)
constant(x) <-  value

Value

Returns a numeric or weyl object

Arguments

x

Object of class weyl

drop

Boolean with default TRUE meaning to return the value of the coefficient, and FALSE meaning to return the corresponding Weyl object

value

Constant value to replace existing one

Author

Robin K. S. Hankin

Examples

Run this code
(a <- rweyl()+700)
constant(a)
constant(a,drop=FALSE)

constant(a) <- 0
constant(a)
constant(a,drop=FALSE)

constant(a+66) == constant(a) + 66

Run the code above in your browser using DataLab