search for: tp4634673p4634754

Displaying 1 result from an estimated 1 matches for "tp4634673p4634754".

2012 Jun 28
4
Printing a variable in a loop
Dear R Users: I'm a STATA user converting to R, and I'd like to be to do the following. #Assign var_1 and var_2 a value 10->var1 20->var2 #Now I'd like to print the values of var_1 and var_2 by looping through var_1 and var_2 in such a manner: while(y<3){ print(var_y) y+1->y } In STATA, the "y" appended to " var_" is called the local variable and