[Rd] Request: making cutree S3 in R?

Gavin Simpson ucfagls at gmail.com
Mon Jun 8 18:24:25 CEST 2015


In lieu of that Tal, why not do as Writing R Extensions illustrates and add
the following to your package


On 6 June 2015 at 04:44, Tal Galili <tal.galili at gmail.com> wrote:

> 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]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



-- 
Gavin Simpson, PhD

	[[alternative HTML version deleted]]



More information about the R-devel mailing list