Skip to content
Prev 21132 / 63424 Next

combining tables

On 6/20/06, Robin Hankin <r.hankin at noc.soton.ac.uk> wrote:
This will define + but not the others:

"+.count" <- function(x,y) {
	both <- c(x,y)
	as.table(tapply(both, names(both), sum))
}