r - How to make a matrix from a given vector by using for loop -


I try to retrieve $ n \ times 4 $ matrix to Since I am new to the R , how to use the loop function properly.

My code is such as

  x   

However, I found: Error in x1 [1 + i, 4 + i]: Wrong number of dimensions.

I have to add this also to the ai in the matrix and ii1 / th of each ai matrix. The row will be. Seems that I should use the cbind function?

Any help would be appreciated. Thanks in advance.

It may help:

  n & lt ; - Length (x1) -1 race and lieutenant; - SPELE ((4: n) -3, function (i) x1 [(i + 3): i]) dim (ridge) # [1] 4 150    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -