Learn R Programming

mvp (version 1.0-12)

invert: 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

Robin K. S. Hankin

See Also

subs

Examples

Run this code
invert("x")

invert(rmvp(10,7,7,letters[1:3]),"a")

Run the code above in your browser using DataLab