[R] Creating a list of lists / hclust elements

David Winsemius dwinsemius at comcast.net
Mon Feb 7 17:14:45 CET 2011


On Feb 7, 2011, at 10:45 AM, Lui ## wrote:

> Dear group,
>
> I am currently struggling with the following problem for a while:
>
> I want to create a list whose elements consists of lists themselves.
> More concise: The list elements are HCLUST objects. However, when I
> try to append the HCLUST objects to my list via:
>
> cluster_list <- append(cluster_list, HCLUSTobject)

Why not?:

cluster_list <- c(cluster_list, HCLUSTobject)

-- 
David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list