Skip to content
Prev 279304 / 398503 Next

Group several variables and apply a function to the group

... with() is useful here: e.g. in base R, simply  tapply() or ave() with with()

with(df,ave(x, comn,mi, FUN = sd))

-- Bert
On Sun, Dec 4, 2011 at 1:07 PM, John Kane <jrkrideau at yahoo.ca> wrote: