From tal.galili at gmail.com  Sat Jun  6 12:44:23 2015
From: tal.galili at gmail.com (Tal Galili)
Date: Sat, 6 Jun 2015 13:44:23 +0300
Subject: [Rd] Request: making cutree S3 in R?
Message-ID: <CANdJ3dWW3xd4-oWgN4AAdKe_q6RyqVhM=-B40Avc=F3FdcSevQ@mail.gmail.com>

Hello all,

A question/suggestion:

I was wondering if there is a chance of changing stats::cutree to be S3 and
use cutree.hclust?

For example:

cutree <- function(tree, k = NULL, h = NULL,...)
{
  UseMethod("cutree")
}

cutree.hclust <- stats::cutree
# This will obviously need the actual content of stats::cutree


This would be nicer for people like me to add new methods to cutree. For
example the cutree.dendrogram function
<https://github.com/talgalili/dendextend/blob/master/R/cutree.dendrogram.R> I
implemented in dendextend,



With regards,
Tal

	[[alternative HTML version deleted]]



[Rd] Request: making cutree S3 in R?
Tal Galili