Skip to content
Prev 86455 / 398513 Next

Inf values in a matrix

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 at hypo-alpe-a wrote:
To:             	r-help at stat.math.ethz.ch
From:           	Ita.Cirovic-Donev at hypo-alpe-adria.com
Date sent:      	Tue, 14 Feb 2006 17:01:12 +0100
Subject:        	[R] Inf values in a matrix
Petr Pikal
petr.pikal at precheza.cz