Skip to content
Prev 167264 / 398502 Next

faster version of split()?

Simon Pickett wrote:
wouldn't it do with something like

with(df,table(x, is.na(y)))[,1]

or

with(df, tapply(!is.na(y), x, sum))

?