Displaying 1 result from an estimated 1 matches for "stocks1".
Did you mean:
stocks
2010 Sep 16
2
question about converting a matrix to a dataframe
First I have a matrix called stocks1:
> class(stocks1)
[1] "matrix"
Here are the first 5 rows of the last 4 columns:
> stocks1[1:5,2:5]
[,1] [,2] [,3] [,4]
[1,] 80.73 31.95 25.4 25.69
[2,] 83.66 31.95 27.12 25.2
[3,] 83.27 32.93 28.74 26.29
[4,] 83.9 34.07 29.77 26.6
[5,] 82.74 35.18 30.24...