Tuesday, 27 August 2013

What is the most efficient data structure in R?

What is the most efficient data structure in R?

I would like to reprogram a large simulation to make it more efficient. An
obvious first step is to preallocate variables etc and I would like to
decide on a data structure that is most efficient in terms of computing
speed.
Also is it advisable to use the same data structure throughout the whole
simulaton?
Data mainly consists of multiple rows and columns of numbers and
operations are:
search in specific rows and columns, add new columns and values, execute
functions sequentially of each row, choose the largest number in a row,
and many replications.

No comments:

Post a Comment