Heja, I've some bigger distance-matrices like this:
num [1:3231, 1:3231] 0.000 0.176 0.176 0.176 0.176 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:3231] "A" "B" "C" "D" ... ..$ : chr [1:3231] A" "B" "C" "D" . I actually want to convert them into a 2 column dataframe like this: data.frame': 10439361 obs. of 2 variables: $ dist: num 0.000 0.176 0.176 0.176 0.176 ... $ spec: Factor w/ 219680 levels "A B",..: 1508 26 27 60 61 62 63 340 413 414 ... preferred appearance: values species 1 0.0000000 A A 2 0.1761717 A B 3 0.1761717 A C 4 0.1761717 A D 5 0.1761717 A E BUT, I don't need the entries where I have the same distance: "A B" vs. "B A", cause the inflate heavily my workspace. I know "stack", but I don't know, why but it seems that stack has limitations in size (?), it doesn't work. I never really understood "reshape". May someone has a nice way to reshape ;O) a matrix. THANKS, cheers from autumnlike Halle, Marten -- *Marten Winter* Helmholtz Centre for Environmental Research -- UFZ Department of Community Ecology Helmholtz-Zentrum für Umweltforschung GmbH - UFZ Sektion Biozoenoseforschung Theodor-Lieser-Str. 4 D-06120 Halle (Saale) Germany phone: ++49 (0) 345 558-5316 / fax:++49 (0) 345 558-5329 E-mail: [EMAIL PROTECTED] http://www.ufz.de/index.php?en=7081 DAISIE - Delivering Alien Invasive Species Inventories for Europe http://www.europe-aliens.org [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.