Displaying 1 result from an estimated 1 matches for "topbot".
2003 Mar 24
1
using tapply with a matrix?
I've successfully created my own function (topbot) that takes a vector as input and used it with tapply() and an input vector (data$depth) and classification factor (data$profile):
vols <- tapply(data$depth, data$profile, topbot)
works great.
But now I want to do something similar, except my function will take a 3 column matrix with nrows() e...