I have a list in R:
a <- list(n1 = "hi", n2 = "hello")
I would like to append to this named list but the names must be dynamic. That is, they are created from a string (for example: paste("another","name",sep="_")
I tried doing this, which does not work:
c(a, parse(text="paste(\"another\",\"name\",sep=\"_\")=\"hola\"")
What is the correct way to do this? The end goal is just to append to this list and choose my names dynamically.