Skip to content
Back to formatted view

Raw Message

Message-ID: <1320348063752-3987487.post@n4.nabble.com>
Date: 2011-11-03T19:21:03Z
From: mstepano
Subject: Searching elements in list
In-Reply-To: <1320342896253-3987066.post@n4.nabble.com>

I forget to mention that the vectors are ordered. I think that one of the
possible solutions is to use lapply, i.e.,

< T %in% lapply(allv, function(x,y) all.equal(x,y),y=somev)
[1] TRUE


--
View this message in context: http://r.789695.n4.nabble.com/Searching-elements-in-list-tp3987066p3987487.html
Sent from the R help mailing list archive at Nabble.com.