Bug 15703 - stats:::as.dendrogram.dendrogram is not registered as an S3 method
Summary: stats:::as.dendrogram.dendrogram is not registered as an S3 method
Status: CLOSED FIXED
Alias: None
Product: R
Classification: Unclassified
Component: Language (show other bugs)
Version: R 3.0.2
Hardware: Other Other
: P5 minor
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2014-03-06 00:37 UTC by Bill Dunlap
Modified: 2015-12-14 13:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Dunlap 2014-03-06 00:37:28 UTC
I believe that stats:::as.dendrogram.dendrogram should be the S3 method of as.dendrogram for dendrogram objects, but it is not registered as such.

> d <- as.dendrogram(hclust(dist(1/(1:4))))
> as.dendrogram(d)
Error in UseMethod("as.dendrogram") : 
  no applicable method for 'as.dendrogram' applied to an object of class "dendrogram"
> identical(d, stats:::as.dendrogram.dendrogram(d))
[1] TRUE
Comment 1 Martin Maechler 2014-03-06 07:40:50 UTC
You are right of course.