[R] how to do java-like hashtables in R, R from a java programmer's p onit of view

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Apr 26 00:45:03 CEST 2001

Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> writes:

> e <- new.env()
> assign(key,value,envir=e)
> get(key,envir=e)
> This has the advantage that environments, contrary to lists, really
> are hashed. Take a peek inside envir.c if you care.

Oops. Wrong... There's code in R for hashing function frames (which is
what new.env() created, but it is #ifdef'ed out.

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list