All variables in a multivariate polynomial
allvars.RdReturns a character vector containing all the variables present in a
mvp object.
Note
The character vector returned is not in any particular order. It might
have been better for allvars() to return a disord object.
Examples
p <- rmvp(5)
p
#> mvp object algebraically equal to
#> 5 + 5 c d^3 + 3 c d^3 e^2 + 2 e f + 2 f
allvars(p)
#> [1] "c" "d" "e" "f"