[R] Is there a hash data structure for R

Yonghua Peng yong @end|ng |rom pobox@com
Tue Nov 2 09:13:06 CET 2021

I know this is a newbie question. But how do I implement the hash structure
which is available in other languages (in python it's dict)?

I know there is the list, but list's names can be duplicated here.

> x <- list(x=1:5,y=month.name,x=3:7)

> x


[1] 1 2 3 4 5


 [1] "January"   "February"  "March"     "April"     "May"       "June"

 [7] "July"      "August"    "September" "October"   "November"  "December"


[1] 3 4 5 6 7

Thanks a lot.

	[[alternative HTML version deleted]]

More information about the R-help mailing list