Skip to content
Prev 228699 / 398500 Next

union data in column

On Sat, Jul 24, 2010 at 2:23 AM, Jeff Newmiller
<jdnewmil at dcn.davis.ca.us> wrote:
You can do this a little more succinctly with colwise:

any_1 <- function(x) as.integer(any(x))
ddply(x, "GENEID", numcolwise(any_1))

Hadley