I made a loop that generates directions inside a list I have using paste function
s=noquote(paste('saa_2$udg[["',Criterios_codigos[a],'"]]',sep ="" ))
, the result is something like this
saa_2$udg[["as1"]]\
saa_2$udg[["et2"]]\
saa_2$udg[["gm3"]]
etc...
I have done this with objects, then I simply use
get(object) and it gives me the result to place on a data frame or whatever.
But since "saa_2$udg[["as1"]]" is a direction inside a list, get() doesn't work, and I cant seem to find a way for it to give me the value stored in that direction.
The direction is correct; if I simply copy and paste the direction
saa_2$udg[["as1"]]
for example, and paste it in the console, it gives me the value stored in that location of the list