From: Petr Pikal <petr.pikal_at_precheza.cz>

Date: Wed 15 Feb 2006 - 03:28:34 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Feb 15 04:15:54 2006

Date: Wed 15 Feb 2006 - 03:28:34 EST

Hi

see

?is.infinite

?which

something like

y <- x[-which(is.infinite(x), arr.ind=T)[,1],] y.removed <-x[which(is.infinite(x), arr.ind=T)[,1],] shall make the trick.

On 14 Feb 2006 at 17:01, Ita.Cirovic-Donev@hypo-alpe-a wrote:

To: r-help@stat.math.ethz.ch From: Ita.Cirovic-Donev@hypo-alpe-adria.com Date sent: Tue, 14 Feb 2006 17:01:12 +0100 Subject: [R] Inf values in a matrix

*>
**>
**>
**>
*

> Hello,

*>
**> I have some Inf values in a matrix, but I don't want to replace them
**> with some value but rather remove the rows that contain the Inf
**> values. Also I would like to record the rows which were removed. Is
**> there an easy way to do this instead of writing loops over the matrix?
**> Thanks.
**>
**> Ita Cirovic Donev
**>
**> ______________________________________________
**> R-help@stat.math.ethz.ch mailing list
**> https://stat.ethz.ch/mailman/listinfo/r-help
**> PLEASE do read the posting guide!
**> http://www.R-project.org/posting-guide.html
*

Petr Pikal

petr.pikal@precheza.cz

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Feb 15 04:15:54 2006

*
This archive was generated by hypermail 2.1.8
: Wed 15 Feb 2006 - 15:28:21 EST
*