[R] Custom data structures inside of a hash function

Yves S. Garret yoursurrogategod at gmail.com
Wed May 4 03:55:09 CEST 2016


I have the following code:

What I'm trying to do is to create a hash map where the key is two
characters and
that maps to a structure of some information.  The problem with the above
is that the first two keys match to the first instance of c('hello', 0),
but the second is
completely ignored.  Ideally, I'd like to retrieve the structure with my
values based on
the key at hand and modify it as I see fit.

How can I achieve this?

	[[alternative HTML version deleted]]

More information about the R-help mailing list