lose | R Documentation |
Convert an mvp
object which is a pure constant into a scalar
whose value is the coefficient of the empty term.
A few functions in the package (currently subs()
, subsy()
)
take a lose
argument that behaves much like the drop
argument in base extraction.
## S3 method for class 'mvp'
lose(x)
x |
Object of class |
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
lose(m1-m2) # numeric
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.