Skip to content
Prev 46352 / 63424 Next

Multiple return values / bug in rpart?

On Mon, Aug 12, 2013 at 6:06 PM, Justin Talbot <justintalbot at gmail.com> wrote:
Works for me, returning a list:

 > foo
function(x){return(x,x*2)}
 > foo(99)
[[1]]
[1] 99

[[2]]
[1] 198

But hey, that might just be because I redefined 'return' earlier:

 > return
function(...){list(...)}

It is unlikely this is the case in rpart though...