Hello all, I've been working on a project involving clustering algorithms and I've hit a bit of a snag. I have my main data frame with is 31 X 1000, I have fed this into dif and hclust in order to produce a 31 item vector stating the perceived grouping of the columns.E.g. 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2 3 3 3 3 etc. What I want to do is use this information to separate each groups worth of data into a separate frame so I can perform additional calculations on them.I've been attempting to use subset by setting the colnames to the grouping results thus: colnames(dataFrame) <- groupssubset(dataFrame,select=c(colname="1") This however only returns the first column rather than all instances of a column with that name. Note that these columns may not necessarily be contiguous. Is this the correct way to go about this? Thank You Martin Kerr [[alternative HTML version deleted]]