Substitute values into a spray object, interpreted as a multivariate polynomial
subs(S, dims, x)
spray object
Integer or logical vector with entries corresponding to the dimensions to be substituted
Numeric vector of values to be substituted
process_dimensions
# NOT RUN { 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 DataCamp Workspace