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) 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -