Re: [R] Custom data structures inside of a hash function

2016-05-04 Thread Jeff Newmiller
It is impolite to put such a minor code fragment on a transient website. Also, this is a plain text mailing list... html usually gets stripped, damaging any advantage the HTML might have had and creating confusion for people reading your message, so please learn how to send plain text. You wrot

[R] Custom data structures inside of a hash function

2016-05-03 Thread Yves S. Garret
Hello, I have the following code: http://pastebin.ca/3590201 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 example is that the first two keys match to the first instance of c('hello', 0),