[R] restructuring "by" output for use with write.table

From: <Steve_Friedman_at_nps.gov>
Date: Tue, 08 Jun 2010 17:23:35 -0400

Hello,

vegMeans <- by(SoilVegHydro[3:37] , SoilVegHydro$Physiogomy, mean)

vegSD <- by(SoilVegHydro[3:37] , SoilVegHydro$Physiogomy, sd)

 write.table(vegMeans,
file="A:\\Work_Area\\Steve\\Hydrology_Data\\data\\vegMeans.txt") Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) :
  cannot coerce class '"by"' into a data.frame

Is there anyway to convert these output objects for use with write.table or an alternate method such that I can output to a word processing system?

Windows R 2.11.1

Thanks
Steve

Steve Friedman Ph. D.
Spatial Statistical Analyst
Everglades and Dry Tortugas National Park 950 N Krome Ave (3rd Floor)
Homestead, Florida 33034

Steve_Friedman_at_nps.gov
Office (305) 224 - 4282
Fax (305) 224 - 4147



R-help_at_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. Received on Tue 08 Jun 2010 - 21:26:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 Jun 2010 - 21:50:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive