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, if I saw that specific, atom_count, I have visited[atom_count] = 1
. Thus, if I see that atom_count again, then I don't "Do Stuff". Atom_Count
is an integer.
Thanks!