Re: [R] Which data structure in R can mimic hash in PERL best?

From: Duncan Temple Lang <duncan_at_wald.ucdavis.edu>
Date: Sat, 15 Nov 2008 08:25:42 -0800

You could use

   new.env(hash = TRUE, emptyenv())

and you can even specify an initial size.

Seth Falcon has a package named dict that allows for different choices of hash function.

   D.

Leon Yee wrote:
> Dear all,
>
> Which data structure in R can mimic hash in PERL? I'd like to set up
> a lookup table, which could be accomplished by HASH if using PERL. Which
> of the data structures in R is the most efficient for lookup table?
> Thanks for your help.
>
> Best regards,
> Leon
>
> ______________________________________________
> 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.



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 Sat 15 Nov 2008 - 16:32:36 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 Sat 15 Nov 2008 - 17:30:27 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