I have variable a
as string:
a = "jul_0_baseline,jul_1_baseline,...jul_11_baseline,jul_12_baseline"
When I try to merge the following zoo series to one table using:
temp <- merge(jul_0_baseline,jul_1_baseline,...jul_11_baseline,jul_12_baseline)
it works, however when I try to merge it using
temp <- merge(a)
I get an error as it the variable a
is a string (even though the text is correct). I am assuming that it is effectively inputting
temp <- merge("jul_0_baseline,jul_1_baseline,...jul_11_baseline,jul_12_baseline")
Any help would be greatly appreciated
a
is a string because it is created using the code:
a <- paste("jul","0","baseline",sep = "_")
for (d in 1:12){ b <- paste("jul",d,"baseline",sep = "_")
a <- paste(a,b, sep=",")
}