I want to create a loop to produce variable names with index. I think 2i-1 will do as I wanted but it generates error.
Week1Day1 is a list with two rows and 6 columns.
for ( i in 1:6 ) {
paste("Week1Day1Plot",2*i-1,sep="")=conversion(Week1Day1[1,i])
}
Error in paste("Week1Day1Plot", 2 * i - 1, sep = "") = conversion(Week1Day1[1, : target of assignment expands to non-language object