Closed HeidiSeibold closed 5 years ago
Unfortunately, rule
is not extracted automatically. This would be a change in https://github.com/gluc/data.tree/blob/master/R/node_conversion_party.R#L165
Though, to be honest, it's been a while since I had my last contact with partykit. But if you are familiar with it, then I'd surely welcome a pull request!
Thanks @gluc for your response. So far partykit
does not have a good way to extract rules so I thought maybe you have already thought about this.
Maybe ggparty
will give us a solution (https://github.com/mmostly-harmless/ggparty) eventually.
Do you have "rules" as concepts in generall in data.tree
?
No, data.tree is really a generic data structure. I only added conversion from and to some other tree data structures to support usage. But beyond simple conversion of what's already available in partykit, there is no partykit related functionality.
Is it possible to extract rules from a data.tree?
This is similar to this question on stackoverflow for partykit.
What I am looking for is a
data.frame
with variablerule
as below (just created automatically instead of by hand).I'd apprechiate any hints. Thanks :tulip: