Displaying 1 result from an estimated 1 matches for "categorywhere".
2008 Jan 10
0
formatting ftable
...to get total counts of species per location per hight category (understory, midstory and overstory). i can save the data in almost the format i would like it to be - but not quite. Here it is an example of what i get: x - is a dataframe with the following columns: LocationID, Species, PercentCover, Categorywhere Category tells if the Species belongs to understory, midstory or overstory
y1 <- ftable(xtabs(PercentCover ~ LocationID + Species + Category, data=x))y2 <- format(y1, quote = FALSE, sep = “,”)write.table(y2, “test1.csv”, row.names = FALSE, col.names = FALSE, sep = “,”)If i read the test1.cs...