Skip to content
Prev 261851 / 398502 Next

VLOOKUP in R - tried everything.

Even after I discovered match(), it took me a little while to figure
out how to use it for this task, so to add on to Peter's comment--to
add a column for total for each value of "coll.minus.release", try the
following:

data$ParasitoidMatch <-
data$ParasitoidTotal[match(data$coll.minus.release,
data$release.days)]

Note also that match() only returns the first match it finds, and by
default returns NA for no match.
On Fri, Jun 3, 2011 at 10:43 AM, peter dalgaard <pdalgd at gmail.com> wrote: