Here's an interesting article: Collections in R: Review and Proposal Timothy Barry The R Journal doi: 10.32614/RJ-2018-037 https://journal.r-project.org/archive/2018/RJ-2018-037/RJ-2018-037.pdf
On Tue, Nov 2, 2021 at 10:48 PM Yonghua Peng <y...@pobox.com> wrote: > > 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 > > $x > > [1] 1 2 3 4 5 > > > $y > > [1] "January" "February" "March" "April" "May" "June" > > [7] "July" "August" "September" "October" "November" "December" > > > $x > > [1] 3 4 5 6 7 > > > > Thanks a lot. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.