Why can't I use paste to construct a string in c()?
c("SomeKey" = 123)
is Ok and prints as:
SomeKey
123
but
a1 <- "Some"
a2 <- "Key"
c(paste(a1, a2) = 123)
produces:
Error: unexpected '=' in " c(paste(a1, a2) ="
Strangely enough, I can do this:
key <- paste(a1, a2)
c(key = 123)