Thank you for helping me. So sorry I did not describe my data clearly. It is a sparse matrix with 1323041 rows and 1154611 columns, but there are no row names and column names. And it may look like this below
"." means there is no value. I want to separate the matrix by the number of rows. For example, the first smaller file I want is the data from ROW1 to ROW20000, containing the first 20000 rows data in original large matrix. And the second file would be from ROW20000 to ROW32300.
it will be better if the last smaller files still are sparse matrix format.