Articles by Random R Ramblings

poorman: Version 0.2.1 Release

July 1, 2020 | Random R Ramblings

Introduction Welcome to my series of blog posts about my data manipulation package, {poorman}. For those of you that don’t know, {poorman} is aiming to be a replication of {dplyr} but using only {base} R, and therefore be completely dependency free. What’s nice about this series is that ... [Read more...]

poorman: The Selectificator 2000!

May 17, 2020 | Random R Ramblings

Introduction Welcome to my series of blog posts about my data manipulation package, {poorman}. For those of you that don’t know, {poorman} is aiming to be a replication of {dplyr} but using only {base} R, and therefore be completely dependency free. What’s nice about this series is that ... [Read more...]

poorman: The Selectificator 2000!

April 13, 2020 | Random R Ramblings

Introduction Welcome to my series of blog posts about my data manipulation package, {poorman}. For those of you that don’t know, {poorman} is aiming to be a replication of {dplyr} but using only {base} R, and therefore be completely dependency free. What’s nice about this series is that ... [Read more...]

poorman: First Release of a base R dplyr Clone

April 1, 2020 | Random R Ramblings

Introduction The first official release of poorman (v 0.1.9) is now on CRAN! You can now install poorman directly from CRAN with the following code:
install.packages("poorman")
In this blog post I want to address some common questions that I have received since I started writing the package. What is poorman? poorman ... [Read more...]

Primitive Functions List

February 1, 2020 | Random R Ramblings

Ever wondered which R functions are actually passed to internal C code? Well, wonder no more as it turns out there is an unexported named list within the methods package providing instructions for turning builtin and special functions into generic functions. Wrapping this list with names() gives us the list ... [Read more...]

Get and Set List Elements with magrittr

February 1, 2020 | Random R Ramblings

Introduction Did you know that the magrittr pipe, %__%, can be used for more than just data.frames and tibbles? In this blog post, we look at how we can create get and set functions for list elements. Getting List Elements First, let’s create a simple list.
z1 <- list(a = pi, b = 2.718, c = 0.57721)
z1
# $a
# [1] 3.141593
# 
# $b
# [1] 2.718
# 
# $c
# [1] 0.57721
Let’s ... [Read more...]

Posts

September 14, 2019 | Random R Ramblings

[This article was first published on Random R Ramblings, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your [Read more...]

No visible binding for global variable

August 18, 2019 | Random R Ramblings

Recently I have been working on a very large legacy project which utilises the excellent data.table package throughout. What this has resulted in is an R CMD check containing literally thousands of NOTEs similar to the following:
❯ checking R code for possible problems ... NOTE
  my_fn: no visible binding for global variable ‘mpg’
There are several reasons why you might see these NOTEs and, ... [Read more...]

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...]
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)