powered by
Convert an mvp object which is a pure constant into a scalar whose value is the coefficient of the empty term.
mvp
A few functions in the package (currently subs(), subsy()) take a drop argument that behaves much like the drop argument in base extraction.
subs()
subsy()
drop
Function drop() is an S4 generic, which is why the package calls setOldClass().
drop()
setOldClass()
Function drop() was formerly called lose().
lose()
# S4 method for mvp drop(x)
Object of class mvp
Robin K. S. Hankin
subs
(m1 <- as.mvp("1+bish +bash^2 + bosh^3")) (m2 <- as.mvp("bish +bash^2 + bosh^3")) m1-m2 # an mvp object drop(m1-m2) # numeric
Run the code above in your browser using DataLab