Thanks for all who commented on this question. It turns out that there is a nice set of functions in library BiodiversityR that translate a stack or list input data file to a community matrix:
import.from.Excel(file = file.choose(), sheet = "community", sitenames = "sites", column = "species", value = "abundance", factor = "", level = "") import.from.Access(file = file.choose(), table = "community", sitenames = "sites", column = "species", value = "abundance", factor = "", level = "") I believe the other contributions set to the list worked to varying degrees as well. billy ______________________________________________ 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.