Skip to content

how to convert a data.frame to tree structure object such as dendrogram

7 messages · MacQueen, Don, Bert Gunter, Not To Miss +2 more

#
You will have to decide what R data structure is a "tree structure". But
maybe this will get you started:
$A
[1] "Ab" "Ac"

$B
[1] "Ba" "Bd"

I suppose it is at least a little bit tree-like.
#
Of course, R's recursive lists **are** trees.

(Some expert may rap my knuckles here, but ... close enough?)

-- Bert
On Mon, Mar 11, 2013 at 1:12 PM, MacQueen, Don <macqueen1 at llnl.gov> wrote:

  
    
#
On Mar 12, 2013, at 9:37 AM, Not To Miss wrote:

            
It's even worse than what you now offer as a potential complication. You did not provide an example of a data object that would illustrate the complexity of the task nor what you consider the correct procedure (i.e. the order of the columns to be used for splitting) nor the correct results. The task is woefully underspecified at the moment. It's a bit akin to asking "how do I do classification" without saying what you what to classify.