Hi,
Is there a way to pass the address of a data.frame through a set of
functions in R? I've got some code which is slowing down I think
because my data.frames are getting much larger - now approaching 1
million rows by 50-100 columns - and my functions - originally written
for much smaller
You can use R environments or proto objects from the proto package
(http://r-proto.googlecode.com) which are environments with additional
oo support using the prototype model) or the oo.R package which is similar
but uses a more conventional oo model.
On Fri, Sep 18, 2009 at 7:38 PM, Mark Knecht
On Sep 18, 2009, at 7:38 PM, Mark Knecht wrote:
Hi,
Is there a way to pass the address of a data.frame through a set of
functions in R? I've got some code which is slowing down I think
because my data.frames are getting much larger - now approaching 1
million rows by 50-100 columns - and my
I wouldn't assume R is making a copy; it depends on what you're doing
with the dataframe.
I'd suggest using Rprof to find out where the cpu time is being
spent. If you can adapt your problem to use all numbers or all
characters then you can store the data in a matrix instead of a data
frame,
On Fri, Sep 18, 2009 at 8:11 PM, Don MacQueen m...@llnl.gov wrote:
I wouldn't assume R is making a copy; it depends on what you're doing with
the dataframe.
Indeed ... I thought R had copy-on-write semantics for function
arguments, no? If so, then if your function doesn't change the
elements in
On 18 September 2009 at 17:11, Don MacQueen wrote:
| I'd suggest using Rprof to find out where the cpu time is being
| spent.
Seconded. Profiling should help you.
Some other ideas:
-- look at the data.table package (on CRAN) by Matt Dowle which he
uses as a fast lookup 'database
6 matches
Mail list logo