subs | R Documentation |
Substitute values into a spray object, interpreted as a multivariate polynomial
subs(S, dims, x, drop=TRUE)
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 |
drop |
Boolean, with default |
It is much easier if argument dims
is sorted into increasing
order. If not, caveat emptor!
Robin K. S. Hankin
process_dimensions
(S <- spray(matrix(sample(0:3,60,replace=TRUE),nrow=12)))
subs(S,c(2,5),1:2)
P <- homog(3,3)
subs(P,1,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.