[Rd] matrix operations

From: Melanie Vida <mvida_at_mac.com>
Date: Mon 21 Feb 2005 - 01:58:58 EST

In R, I'm imported a data frame of 2,321,123 by 4 called "dataF". I converted the data frame "dataF" to a matrix

dataM <- as.matrix(dataF)

Does R have an efficient routine to treat the special elements that contain "inf" in them. For example, can you separate the rows that have "inf" elements from the matrix into a separate matrix without iterating over the entire matrix?

Also, does R have an efficient way to sort columns in a matrix?


R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon Feb 21 01:06:18 2005

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:02:57 EST