Displaying 1 result from an estimated 1 matches for "hydrology_data".
2010 Jun 08
1
restructuring "by" output for use with write.table
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...