s-news
[Top] [All Lists]

Re: Applying vector functions to dataframes

To: Tony Plate <tplate@blackmesacapital.com>
Subject: Re: Applying vector functions to dataframes
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Fri, 29 Jul 2005 08:03:11 +0100 (BST)
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <42E90F32.1060602@blackmesacapital.com>
References: <20050726164736.9B954F398C@mail.blarg.net> <42E90F32.1060602@blackmesacapital.com>
On Thu, 28 Jul 2005, Tony Plate wrote:

Thomas Jagger wrote:
Good morning. [snip]

However, lapply uses for loops, so you might as well use the for loops
explicitly (or try R).


Actually, while that is true in R, I believe it is not true in S-PLUS: in S-PLUS lapply() calls the compiled function "S_qapply".

`Actually', in R it calls the compiled function "lapply", and has done so for a few years.

--
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

<Prev in Thread] Current Thread [Next in Thread>