Given an mvp object, replace one or more symbols with their reciprocals
mvp
invert(p, v)
Object (coerced to) mvp form
Character vector of symbols to be replaced with their reciprocal; missing interpreted as replace all symbols
subs
# NOT RUN { invert("x") invert(rmvp(10,7,7,letters[1:3]),"a") # }
Run the code above in your browser using DataLab