Submatrix of a matrix returning ALWAYS a matrix
submatrix(M, rows = 1:nrow(M), cols = 1:ncol(M))
The matrix M[rows, cols], keeping/adjusting attributes like ncol nrow and dimnames.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.