Articles by Michael Mayer

Avoid loops in R! Really?

February 19, 2022 | Michael Mayer

It must have been around the year 2000, when I wrote my first snipped of SPLUS/R code. One thing I've learned back then: Loops are slow. Replace them with vectorized calculations or if vectorization is not possible, use sapply() et al. Since then, the R core team and the community ...
[Read more...]

X-Mas Tree with 10 Lines of R Code

December 20, 2021 | Michael Mayer

Besides the many negative aspects of going through a pandemic, there are also certain positive ones like having time to write short blog posts like this. This one picks up a topic that was intensively discussed a couple of years ago on Wolfram's page: Namely that the damped sine wave ... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)