"Qiang Li (Jonathan)" <[EMAIL PROTECTED]> wrote in message 
news:<[EMAIL PROTECTED]>...
> 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"]
         d
-0.3581889


efg
Earl F Glynn
Bioinformatics
Stowers Institute for Medical Research

______________________________________________
R-help@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.

Reply via email to