FAQ Database Discussion Community


in R, what is the difference between get(“abc”) and eval(parse(text=“abc”))

r,parsing,eval
I'd like to know the difference(s) between those two operations; in this example, they seem to work the same, but there must be situations where one will work and the other not. I just can't figure out when this would be the case. > a <- 298 > eval(parse(text =...

Save a dictionary key as a variable

python,dictionary,multidimensional-array,key,eval
I'm working on a small framework and I've found a place where it would be beneficial to save a dictionary key as variable. The problem I have is that the dictionary may have any number of layers, so it's not just a case of storing the final key. For example...

Can an inserted