Message-ID: <87mww36csb.fsf@gnu.org>
Date: 2013-01-20T16:26:44Z
From: Sam Steingold
Subject: select rows with identical columns from a data frame
In-Reply-To: <CACk-te3rnj8aXb7Jztsy7vt3eA_+ou+c_B_XOo_0Fz5CCamyDw@mail.gmail.com> (Bert Gunter's message of "Sat, 19 Jan 2013 22:26:46 -0800")
> * Bert Gunter <thagre.oregba at trar.pbz> [2013-01-19 22:26:46 -0800]:
>
> But David W. and Bill Dunlap gave you solutions that also work and are
> much faster, no?!
Yes, indeed, and I am now using David's solution as it is fast
(enough), simple and concise.
Thanks a lot to David, Bill, Rui, and arun for their answers (to this
question, my many previous questions, and, I hope, my future questions
in advance)!
> On Sat, Jan 19, 2013 at 9:41 PM, Sam Steingold <sds at gnu.org> wrote:
>>> * Rui Barradas <ehvconeenqnf at fncb.cg> [2013-01-18 21:02:20 +0000]:
>>>
>>> Try the following.
>>>
>>> complete.cases(f) & apply(f, 1, function(x) all(x == x[1]))
>>
>> thanks, this works, but is horribly slow (dim(f) is 766,950x2)
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://americancensorship.org http://palestinefacts.org
http://thereligionofpeace.com http://camera.org http://think-israel.org
Lisp is a way of life. C is a way of death.