Department of Biostatistics Seminar/Workshop Series

Loops in R: So much to run, so little time. Tips on efficiency.

Svetlana Eden, MS

Biostatistician III, Department of Biostatistics, Vanderbilt University School of Medicine

Wednesday, May 11, 1:30-2:30pm, MRBIII Conference Room 1220

While the statistical programming language, R, has many advantages, including flexible data manipulation, efficient code is imperative to get the best performance. This talk will evaluate the efficiency of different coding constructs in R. We will get familiar with the concept of time complexity -- a measurement of efficiency. Using this concept, we will compare the performance of several R loops, pointing out which coding constructs should be avoided to maximize efficiency. We will also look at an example of inefficient code and work through how to significantly improve its efficiency.
Topic revision: r1 - 20 Apr 2011, EveAnderson
 

This site is powered by FoswikiCopyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback