[R]:Agnes vs Hclust Hi, I want to know if there is a difference between the two hierarchical methods Agnes and hclust when there are used with the same method and the same metric on the same data! I ask this question because I've got a difference, the clusters are not the same even if there are some similarities... Is anybody know why i have this difference? Thanks Nicolas BOUGET
Hello, I'd like to know if I can modify a constant value with a function. Example : a=4 f1<-function() {a=3} Of course, after the function f1() is executed , the value of a is always 4. I'd like the value returned is 3, like it is possible in C by doing *a=3 Thank you nicolas [[alternative HTML version deleted]]
> Hello, > > I'd like to know if I can modify a constant value with a function. > > Example : > > a=4 > > f1<-function() > {a=3} > > Of course, after the function f1() is executed , the value of > a is always 4. I'd like the value returned is 3, like it is > possible in C by doing *a=3 >Use return: f1 <- function() {a=3; return(a)} Matthias