Displaying 1 result from an estimated 1 matches for "mynicefunct".
2006 Feb 26
2
subtotal, submean, aggregate
...ervations,habitats=habitats)
aggregate() is not suitable for my purpose because I want a result
respecting the order of the habitats encountered although they may have
the same name (and not pooling each group on each level of the factor
created). For instance, the output of the ideal function
mynicefunction() would be something as:
mynicefunction(transect$observations, by=list(transect$habitats),sum)
meadow 16
forest 9
meadow 21
pasture 17
and not
aggregate(transect$observations,by=list(transect$habitats),sum)
Group.1 x
1 forest 9
2 meadow 37
3 pasture 17
Did anybody hear...