search for: tp2020772p2023108

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

2010 Apr 22
6
macro variable in R?
I need to create 10 matrices. say matrix 1-10. matrix_1 is 1 by 1 matrix_2 is 2 by 2 matrix_3 is 3 by 3 . . . matrix_10 is 10 by 10 I am just wondering if there are some functions in R that are similar to the macro variables in SAS. so I can create these 10 matrices by doing: for (i in 1: 10) { matrix_$i <- matrix(nrow=i, ncol=i) } rather thank creating these matrices one by one