[R] library (tree)- which samples belong to each terminal branch?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Sep 19 21:41:15 CEST 2005
On Mon, 19 Sep 2005, Chris Buddenhagen wrote:
> What I would like to know is if there is a way to know which specific
> samples fall within a terminal branch created by tree? The classification
> summarizes data, but I want to know which specific samples fall within each
> classification (branch in the dendrogram).
Please read the help page (as we do ask). Component `where' in the
returned object tells you the information you are seeking.
If you want this for new data, predict.tree has a type="where" to tell
> Data contains site codes and multiple fields describing the characters of a
> single specimen of grass growing there. Each sample is an individual plant
> from a site, all plants are similar to each other, but may represent
> different species. I classified species using tree and these are labeled by
> site name. The classification gives me a nice separation of supposed species
> in terms of only 3 sites but with some sites occurring on more than one
> terminal branch, this obviously summarizes one or more species/sites on each
> branch of the dendrogram. So back to my question, how do I find out which
> samples fall within each branch?
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help