Skip to content

proper way to process dataframe by rows

1 message · Duncan Murdoch

#
On Sun, 28 Nov 2004 21:25:24 -0500, Jack Tanner <ihok at hotmail.com>
wrote:
I would just use a for() loop if I didn't care about the speed too
much.  If I did, I'd avoid dealing with rows of dataframes:  access
using dataframe indexing is slow.  Depending what your function is,
you're probably better off extracting the columns of the dataframe as
vectors, and working with those.

Duncan Murdoch