r - How to make a matrix from a given vector by using for loop -
I try to retrieve My code is such as However, I found: Error in I have to add this also to the Any help would be appreciated. Thanks in advance. It may help: $ n \ times 4 $ matrix to
Since I am new to the
R , how to use the loop function properly.
x
x1 [1 + i, 4 + i]: Wrong number of dimensions.
ai in the matrix and
ii1 / th of each
ai matrix. The row will be. Seems that I should use the cbind function?
n & lt ; - Length (x1) -1 race and lieutenant; - SPELE ((4: n) -3, function (i) x1 [(i + 3): i]) dim (ridge) # [1] 4 150
Comments
Post a Comment