If you submit these lines, you end up with variable "vare.dis". I want to export vare.dis to csv. Stuck I am.
library(vegan,logical.return = TRUE) #return=true verifies package is available library(MASS,logical.return=TRUE) #return=true verifies package is available data(varespec) #varespec is an example data file in the vegan package vare.dis <- vegdist(varespec) vare.dis #this is the triangular matrix I'd like to export x=format.data.frame(vare.dis) #nope, don't work x=format(vare.dis) #nope x=data.frame(vare.dis) #ditto x=unknown.function(vare.dis) #??? What is the unknown bit here to do this? #this is what I want to be able to do, i.e., write the matrix "x" out as a csv write.csv(x, file = "temp.csv") Gregory A. Graves, Lead Scientist Everglades REstoration COoordination and VERification (RECOVER) Restoration Sciences Department South Florida Water Management District Phones: DESK: 561 / 682 - 2429 CELL: 561 / 719 - 8157 [[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.