Skip to content
Prev 152264 / 398500 Next

Selecting Variables

Try this:

data.frame(ID = x$ID,
                   Max_Exposure = max(rowSums(x[,-1] == "y")),
                   Unique_Exposure = rowSums(x[,-1] == "y"))
On Tue, Aug 5, 2008 at 10:21 AM, Michael Pearmain <mpearmain at google.com> wrote: