invert: Replace symbols with their reciprocals

invertR Documentation

Replace symbols with their reciprocals

Description

Given an mvp object, replace one or more symbols with their reciprocals

Usage

invert(p, v)

Arguments

p

Object (coerced to) mvp form

v

Character vector of symbols to be replaced with their reciprocal; missing interpreted as replace all symbols

Author(s)

Robin K. S. Hankin

See Also

subs

Examples

invert("x")

(P <- as.mvp("1+a+6*a^2 -7*a*b"))
invert(P,"a")


mvp documentation built on March 31, 2023, 5:43 p.m.