align-toparrow-leftarrow-rightbackbellblockcalendarcamerachatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditfacebookglobegoogleimagesinstagramlocation-pinmagnifying-glassmailmoremuplabelShape 3 + Rectangle 1outlookpersonplusImported LayersImported LayersImported Layersshieldstartwitteryahoo

How to speed up your R code with virtually no effort

One way to speed up your R code is to convert the speed critical components to C or some other language. But this takes time and effort. In this informal talk, I’ll suggest a four step approach for speeding up your R code with virtually no effort. For step one I’ll talk about the avoidance of slow implementations in the initial coding stage. For step two I’ll discuss profiling your code using the Rprof function. For step three I’ll look at parallelized implementations using the parallel and foreach packages. And finally, in step four I’ll spend a couple of dollars of my hard earned cash to demonstrate the use of R Studio Server on Amazon EC2 in order to access computing power that I couldn’t otherwise afford.

Alec Stephenson is a Research Scientist, a former Assistant Professor at the National University of Singapore and a former post-doc at Macquarie University. Alec is a mathematician, statistician and programmer, and wrote several R packages when he was a PhD student at Lancaster University, U.K., following undergraduate training at Warwick and Oxford. He is now an Australian citizen, and has given all his publicly available software away to others who are younger and cleverer. He recently won a couple of Kaggle competitions on credit scoring and rating chess players.

Join or login to comment.

  • Abiodun M.

    i need help in using DocumentTermMatrix function in R, first to tokenize using n-gram, removestop, countfreq and stemming for larger text document of email.

    September 14, 2012

  • Jeromy A.

    Slides for Alec's Talk.

    Alec has added a final slide containing an important clarification of an answer he gave in response to a question about Amazon EC2.

    http://files.meetup.com/1685538/RSpeedTalk.ppt

    1 · September 12, 2012

  • A former member
    A former member

    Session was straight to the point and helpful relevant demonstrations were use to prove his points

    September 12, 2012

  • He(Michael) L.

    If I have to describe the short lecture, I would say it is pretty useful. Brief one sometimes can be very productive and motivated.

    September 12, 2012

  • Johann de B.

    Very smooth presentation and well paced

    September 11, 2012

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy