r - Select n first rows of a matrix -
how can select, top 100 rows of matrix in r? found using subset requires condition parameter. need make smaller matrix using first n number of rows same number of columns
use head
function:
head(mat, 100)
how can select, top 100 rows of matrix in r? found using subset requires condition parameter. need make smaller matrix using first n number of rows same number of columns
use head
function:
head(mat, 100)
Comments
Post a Comment