How to construct matrices/vectors from a table in R? : <p>I'm quite new to R, and if I imported a .csv file and if rows represent </p>

<p>time and columns represent n variables of interest, how could I construct a </p>

<p>function that returns any given 1xn vector from the table? </p>

<p>P.S. I'm not just interested in constructing a vector, but I will perform 
matrix algebra with iterative calculations to estimate parameters, which means 
I will need to use a for-loop. </p>
