Skip to content
Back to formatted view

Raw Message

Message-ID: <CAM_vju=rOBEr8sLwE4OJ75Dky9c1YMm+Go0oE2ZZHHZF6AkCLQ@mail.gmail.com>
Date: 2017-09-09T16:35:50Z
From: Sarah Goslee
Subject: error with subtree()
In-Reply-To: <695568331.5959980.1504961911483@mail.yahoo.com>

You appear to already have something named subtree in your environment:

The following object is masked _by_ ?.GlobalEnv?:
    subtree


You could get rid of it, or you could specify that you want to use
subtree from extracat

hcs <- extracat::subtree(hc, k = 7)

Sarah

On Sat, Sep 9, 2017 at 8:58 AM, Fix Ace via R-help <r-help at r-project.org> wrote:
> Dear R community,
> I would like to plot a partial hclust output, so I am looking for a subtree function that would return an tree structure I can plot.
> I ran the test code of subtree following the instruction on http://finzi.psych.upenn.edu/library/extracat/html/subtree.html
> However, an error message popped up:
> ====> library(extracat)
> Attaching package: ?extracat?
> The following object is masked _by_ ?.GlobalEnv?:
>     subtreehc <- hclust(dist(USArrests), "ave")> > hcs <- subtree(hc, k = 7)Error in subtree(hc, k = 7) : unused argument (k = 7)
> ===
> Can anyone help me what happened here? And what should I do with it?
> Thank you very much!
> Ace
>

-- 
Sarah Goslee
http://www.functionaldiversity.org