Displaying 1 result from an estimated 1 matches for "theta3_".
Did you mean:
theta3
2009 Apr 20
3
Calling objects in a loop
...efined objects. Here is a simplified version of what I am trying to do:
for(i in 1:10){
assign(paste("theta1_",i,sep=""),data.frame(scale(rnorm(250))))
assign(paste("theta2_",i,sep=""),data.frame(scale(rnorm(250))))
assign(paste("theta3_",i,sep=""),data.frame(theta1_i +
theta2_i)
}
I am having trouble with getting it to recognize that theta3_i should be
calculated using theta1_i and theta2_i in the third line. In other words,
theta3_1 should equal theta1_1+theta2_1 whereas theta3_2 should equal
th...