The constant term of a spray object is the coefficient corresponding to an index of all zeros. These functions get or set the constant of a spray object.
constant(S,drop=FALSE)
constant(S) <- value
Object of class spray
Numeric value to set the constant coefficient to
Boolean, with default FALSE
meaning to return a
spray object and TRUE
meaning to return a numeric value
In function constant()
, return the coefficient, or a constant
multivariate polynomial, depending on the value of drop
.
# NOT RUN { S <- spray(partitions::blockparts(rep(2,4),3,TRUE)) constant(S) constant(S) <- 33 S # }