Hi
Using cutree(tree$merge, k) fixed the problem.
In fact had to use cutree(tree["merge"], k)
Will compare results in R 2 and R 3 now.
Thanks for your help.
Sébastien
cutree is a function available in stats.
So it might be worth a try to just replace
.Call("R_cutree", tree$merge, k, PACKA
cutree is a function available in stats.
So it might be worth a try to just replace
.Call("R_cutree", tree$merge, k, PACKAGE = "stats”)
by
cutree(tree$merge,k)
and see what happens.
checking the source of cutree shows the following call
ans <- .Call(C_cutree, tree$merge, k)
so replacing
On 08.03.2016 14:55, Sebastien Moretti wrote:
Hi
I inherited a R package done in 2004 that works perfectly in R 2.15.1
and before, but not in R 3.2.2 ( >= 3).
I have already fixed issues with namespace for functions in R 3 but
maybe not all of them.
Here is the error message:
Error in .Call(
Hi
I inherited a R package done in 2004 that works perfectly in R 2.15.1
and before, but not in R 3.2.2 ( >= 3).
I have already fixed issues with namespace for functions in R 3 but
maybe not all of them.
Here is the error message:
Error in .Call("R_cutree", tree$merge, k, PACKAGE = "stats")
"R_
On 08.03.2016 12:01, Sebastien Moretti wrote:
Hi
I inherited a R package done in 2004 that works perfectly in R 2.15.1
and before, but not in R 3.2.2 ( >= 3).
I have already fixed issues with namespace for functions in R 3 but
maybe not all of them.
Here is the error message:
Error in .Call(
Hi
I inherited a R package done in 2004 that works perfectly in R 2.15.1
and before, but not in R 3.2.2 ( >= 3).
I have already fixed issues with namespace for functions in R 3 but
maybe not all of them.
Here is the error message:
Error in .Call("R_cutree", tree$merge, k, PACKAGE = "stats")
6 matches
Mail list logo