put {multipol} | R Documentation |
Substitute a value for a variable and return a multipol of arity
d-1
put(a, i, value, keep = TRUE)
a |
multipol |
i |
Dimension to substitute |
value |
value to substitute for x[i] |
keep |
Boolean with default TRUE meaning to retain
singleton dimensions and FALSE meaning to drop them |
Robin K. S. Hankin
a <- as.multipol(matrix(1:12,3,4)) put(a,1,pi) put(a,2,pi) b <- as.multipol(array(1:12,c(3,2,3))) put(b,2,pi,TRUE) put(b,2,pi,FALSE)