Message-ID: <49EE3FF1.1070002@gmx.de>
Date: 2009-04-21T21:51:45Z
From: Stephan Kolassa
Subject: Deleting rows or cols that do not meet cut off
In-Reply-To: <49EE3D65.8030402@idi.ntnu.no>
Hi Wacek,
Wacek Kusnierczyk schrieb:
> ... or gain a bit on performance by doing the threshold comparison on
> the whole matrix just once at once:
>
> dd = d <= 1
> d[apply(d, 1, any), apply(d, 2, any)]
d[apply(dd, 1, any), apply(dd, 2, any)]
Or not?
Cheers,
Stephan