[R] removing nodes from a dendrogram

2007-11-12 Thread Jesse Lecy
Hello, I am trying to remove nodes from a dendrogram - specifically nodes that have less than 3 members. I am trying to create a function to do so, but I am not sure how to reference the node inside of the function. Here is the code: rem.nodes <<- function(n) { if(!is.leaf(n) & attr(n,

Re: [R] removing nodes from a dendrogram

2007-11-12 Thread Jesse D Lecy
> > Hello, > I am trying to remove nodes from a dendrogram - specifically nodes that > have less than 3 members. I am trying to create a function to do so, but I > am not sure how to reference the node inside of the function. Here is the > code: > > rem.nodes <<- function(n) { > if(!is