drop: Drop empty variables

Description Usage Arguments Author(s) See Also Examples

Description

Convert a mvp object which is a pure constant into a scalar whose value is the coefficient of the empty term

Usage

1
drop(S)

Arguments

S

An mvp object

Author(s)

Robin K. S. Hankin

See Also

subs

Examples

1
2
3
4
5
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

mvp documentation built on Feb. 4, 2019, 5:05 p.m.