[R] how to show a section of a matrix neatly (or row by row) that satisfies some condition
Edmond.Ng at lshtm.ac.uk
Mon Mar 24 20:40:06 CET 2003
I want to show the rows of a matrix (100x3) of which some of its elements satisfy a certain condition. In particular, how can I display the 2 rows of my matrix one after the
other and not all all elements of column 1 first, then column 2 and so on. See the following.
> finest[finest[,1] > 10^3]
 4.960632e+13 3.612619e+04 7.668204e+12 1.001911e+04 8.886153e-01
 100 3
Many thanks in advance.
More information about the R-help