Re: [R] hashmap in R

From: Earl F. Glynn <>
Date: Thu, 08 May 2008 09:40:04 -0500

"Qiang Li (Jonathan)" <> wrote in message news:<>...
> Hi friends on R list,
> Have people tried to implement a hashmap in R? What is the generic way to
> implement a lookup table in R?

Does this help?

> x <- rnorm(4)
> names(x) <- c("a", "b", "c", "d")
> x

         a b c d -1.4122868 1.3588267 -0.5499391 -0.3581889
> x["d"]


Earl F Glynn
Stowers Institute for Medical Research mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 08 May 2008 - 15:00:17 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 Thu 08 May 2008 - 15:30:36 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive