RobinHankin / mvp

https://robinhankin.github.io/mvp/
8 stars 3 forks source link

There is no is.constant() function #22

Closed RobinHankin closed 5 years ago

RobinHankin commented 5 years ago

it would be nice to have a function that tests for a mvp object being constant:

is.constant(as.mvp("3"))   # should return TRUE
is.constant(as.mvp("1+x")) # should return FALSE
RobinHankin commented 5 years ago

The best way to to this would be length(allvars(P))==0