In the following code
f <- function(nm1, nm2) {
df1 <- data.frame()
df2 <- data.frame()
list(nm1=df1, nm2=df2)
}
res <- f("yo", "there")
the nm
s are treated as literals.
How can I express during list building that I am using a symbol not a literal?
This confusion between when a literal is intended seems to permeate the language. In the absence of BNF diagrams, if you have figured out a general rule, please share it (but I'm at present only concerned about the narrow question above).