Articles by r-bloggers on

Game of Life, the DTerminal edition

January 6, 2020 | r-bloggers on

Yet another offshoot from my Advent of Code 2019 adventures (first half, second half, all solutions): on day 24, the challenge was to program a variant of Conway’s game of life, and I figured I might as well try my approach on the real thing! A quick google for existing implementations ...
[Read more...]

Advent of Code, the second half

December 30, 2019 | r-bloggers on

So Advent of Code 2019 ended last week, and I got all 50 stars. The challenges became considerably more challenging compared to the first half, but base R did allow acceptably efficient solutions in almost all cases. My code is still on GitHub - here’s what I learned about R by ... [Read more...]

Advent of Code, the first half

December 10, 2019 | r-bloggers on

’tis the season to be coding! As I’m sure you’ve all noticed (cough) I have been rather quiet on the blogging front lately because my leisure coding time has been consumed by the annual Advent of Code challenge. It would have been fun to use this to become ... [Read more...]

R scripts as command line tools

November 12, 2019 | r-bloggers on

Most R users rely heavily on the interactive console for writing and executing code, but sometimes you will want to expose your work to a world outside of that cosy cocoon. One solution is to wrap a web API around your code, for instance using the excellent {plumber}. The other ... [Read more...]

Matrix cross-distances using Rcpp

September 27, 2019 | r-bloggers on

I promised to keep these posts short and sweet, and have been failing miserably lately. So how about a quick one? The problem One of the things I find myself implementing again and again in R is the computation of the Euclidean cross-distances of all pairwise points between two coordinate ... [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)