On Sun, Oct 24, 2010 at 2:54 PM, Peter Ehlers <ehl...@ucalgary.ca> wrote:
> Whoops, got an extra comma in there somehow; should be:
>
>  apply(d, 1, function(x) match(1, x))
>

A slight variation on this would be:

   apply(d, 1, match, x = 1)


-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to