spray (version 1.0)

subs:

Description

Substitute values into a spray object, interpreted as a multivariate polynomial

Usage

subs(S, dims, x)

Arguments

S
spray object
dims
Integer or logical vector with entries corresponding to the dimensions to be substituted
x
Numeric vector of values to be substituted

See Also

process_dimensions

Examples

Run this code

S <- spray(matrix(sample(0:3,60,replace=TRUE),nrow=12))

subs(S,c(2,5),1:2)

subs(homog(3,3),1,3)

Run the code above in your browser using DataLab