I want to make the equivalent of a python dict in R. Basically, in python, I have:
visited = {} if atom_count not in visited: Do stuff visited[atom_count] = 1
The idea is that if I saw this particular atom_count, I visited [atom_count] = 1. Thus, if I see this atom_count again, Iām not doing the stuff. Atom_Count is an integer.
Thank!
dictionary r
user1357015 May 21 '12 at 2:22 am 2012-05-21 02:22
source share