I've tried pipeR + the data.tree package, but pipelining won't work. The problem is that data.tree functions (such as Prune) change the object in-place, returning something unrelated with the object passed as parameter. Would you have an idea on how to interface with data.tree properly? I'd like to be able to do something like this:
But the problem is that Prune always returns the number of nodes removed. How can I tell pipeR to consider the modified . as input for the next Prune call? Is that possible?
I've tried pipeR + the data.tree package, but pipelining won't work. The problem is that data.tree functions (such as Prune) change the object in-place, returning something unrelated with the object passed as parameter. Would you have an idea on how to interface with data.tree properly? I'd like to be able to do something like this:
Normally, Prune expects a tree object in its first parameter, like this:
So, I was expecting in using the
.
to mark, such as this:But the problem is that Prune always returns the number of nodes removed. How can I tell pipeR to consider the modified
.
as input for the next Prune call? Is that possible?Thanks for this nice package.