Skip to content
Prev 140187 / 398506 Next

vlookup in R

I think that merge is what you want:

set.seed(24032008)
x <- data.frame(ID=sample(10), Value=rnorm(10))
idx <- sample(5)
merge(idx, x, by.x=1, by.y=1)
On 24/03/2008, Sachin J <sachinj.2006 at yahoo.com> wrote: