Skip to content
Back to formatted view

Raw Message

Message-ID: <da79af330803240741s4f9ceee8n58e50b000633a3db@mail.gmail.com>
Date: 2008-03-24T14:41:52Z
From: Henrique Dallazuanna
Subject: vlookup in R
In-Reply-To: <897147.50760.qm@web37606.mail.mud.yahoo.com>

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:
> Hi,
>
>  Is there are function similar to excel vlookup in R. Please let me know.
>
>  Thanks,
>  Sachin
>
>
>       ____________________________________________________________________________________
>
>
>         [[alternative HTML version deleted]]
>
>  ______________________________________________
>  R-help at 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.
>


-- 
Henrique Dallazuanna
Curitiba-Paran?-Brasil
25? 25' 40" S 49? 16' 22" O