Articles by Random R Ramblings

Extending sparklyr: Data Types

March 8, 2018 | Random R Ramblings

TL;DR sparklyr maps R data types and data storage types to Scala, but it doesn’t handle all data storage types. This blog post discusses how to generate Scala data storage types from the R side, that are not generated by sparklyr. You can do this by using the ... [Read more...]

Project Euler in R

February 28, 2018 | Random R Ramblings

Project Euler This is just a short blog post to raise some awareness to some fun programming and mathematical challenges I recently came across, hosted on Project Euler. The idea behind Project Euler is to provide abstract programming challenges for p... [Read more...]

The Twitter Waterflow Problem

August 9, 2017 | Random R Ramblings

Introduction I was recently introduced to the Twitter Waterflow Problem and I decided it was interesting enough to try and complete the challenge in R. Consider the following picture: This plot shows a series of walls and empty valleys. We can represent this picture by an array of integers, where ...
[Read more...]

Piping Within Pipes

November 21, 2016 | Random R Ramblings

The magrittr pipe (%__%) has revolutionised the way many people now write R code. I’ve been using R for over 7 years and the pipe has become a staple of my programming conventions. However it was recently brought to my attention that you can actually use pipes within function calls, which ...
[Read more...]
1 2

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)