Dear Ruser,
Below, the deal (you can copy paste):
r=3 ; set.seed(1)
v <- matrix(c(rnorm(40)),10,4)
for (j in 1:4){
for (i in 1:r){
x <- t(v[,j]^(i)*v[,1:4]^((r-(4-1)):r))
print(x)
}
}
How to reach to " x " " row bind " inside or outside (preferred) of the
loop.
To obtain at the end something like: