Natural way to represent hash tables/dictionaries/maps in R

后端 未结 1 2036
礼貌的吻别
礼貌的吻别 2021-01-01 16:19

I want to use a dictionary/map data structure in R, similar to Python\'s dict or C++ STL\'s std::map or std::hash_map.

I can d

1条回答
  •  感动是毒
    2021-01-01 17:13

    The fastest will be an environment, since they're hashed by default.

    e <- new.env()
    e$my_key <- 10
    ls(e)
    

    0 讨论(0)
提交回复
热议问题