Skip to contents

Returns a character vector containing all the variables present in a mvp object.

Usage

allvars(x)

Arguments

x

object of class mvp

Author

Robin K. S. Hankin

Note

The character vector returned is not in any particular order

Examples

p <- rmvp(5)
p
#> mvp object algebraically equal to
#> 5 + 2 a c f + 3 a^2 d f^3 + 4 b^2 d f + 3 e
allvars(p)
#> [1] "a" "b" "c" "d" "e" "f"