Sub-matrix
Sub-matrix.
submatrix(x,rowStart=1,rowEnd=1,colStart=1,colEnd=1)
x |
A Matrix, List, Dataframe or Vector. |
rowStart |
Start of the row. |
rowEnd |
End of the row. |
colStart |
Start of the col. |
colEnd |
End of the col. |
sub matrix like R's, x[startrow:endrow,startcol:endcol]. Fast especially for big sub matrices.
Manos Papadakis
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
x <- matrix( rnorm(100 * 100), ncol = 100 ) res<-submatrix(x,1,50,1,25) # x[1:50,1:25] x<-NULL
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.