Sub-matrix | R Documentation |
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>.
Match, mvbetas, correls, univglms, colsums, colVars
x <- matrix( rnorm(100 * 100), ncol = 100 )
res<-submatrix(x,1,50,1,25) # x[1:50,1:25]
x<-NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.