Re: [R] vlookup in R

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Mon, 24 Mar 2008 11:41:52 -0300

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

______________________________________________
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.
Received on Mon 24 Mar 2008 - 15:36:30 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 24 Mar 2008 - 16:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive