Displaying 1 result from an estimated 1 matches for "bu3f12".
2009 Jul 29
4
- counting factor occurrences within a group: tapply()
...e data follow:
> Trees<-data.frame(SppID=as.factor(c(rep('QUEELL',2), rep('QUEALB',3),
'CORAME', 'ACENEG', 'TILAME')), BA=c(907.9, 1104.4, 113.0, 143.1, 452.3,
638.7, 791.7, 804.3), PlotID=as.factor(c('BU3F10', rep('BU3F11',2),
rep('BU3F12',5))))
> Trees
SppID BA PlotID
1 QUEELL 907.9 BU3F10
2 QUEELL 1104.4 BU3F11
3 QUEALB 113.0 BU3F11
4 QUEALB 143.1 BU3F12
5 QUEALB 452.3 BU3F12
6 CORAME 638.7 BU3F12
7 ACENEG 791.7 BU3F12
8 TILAME 804.3 BU3F12
Fields are (in order): Tree Species Code, Basal Area, a...