Re: [R] hashmap in R

2008-05-08 Thread Earl F. Glynn
"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

Re: [R] hashmap in R

2008-05-08 Thread Dieter Menne
Qiang Li (Jonathan yahoo.com> writes: > Have people tried to implement a hashmap in R? What is the generic way to implement a lookup table in R? By default, this is implicit, for example, when using named vectors. http://finzi.psych.upenn.edu/R/Rhelp02a/archive/51507.html and ?environment Die