Skip to content
Prev 320460 / 398506 Next

how to search a list that contains multiple dissimilarvectors?

Hi, Eric,

as a quick hack, does

spots <- sapply( alist,
                  function( listcomp)
                   which( listcomp == value.to.look.for) )

spots[ sapply( spots, length) == 0] <- NULL

do what you want?


Regards  --  Gerrit
On Thu, 28 Mar 2013, Eric Rupley wrote: