Articles by Roel M. Hogervorst

Expressing size in bananas a dive into {vctrs}

June 7, 2020 | 0 Comments

Recently I’ve become interested in relative sizes of things. Maybe I’m paying more attention to my surroundings since I’m locked at home for so long. Maybe my inner child is finally breaking free. Whatever the reason, I channeled all of that into two packages: everydaysizes A rather ... [Read more...]

New Package, Pinboardr

May 10, 2020 | 0 Comments

I’ve created a new package to interact with pinboard not to be confused with pinterest. I noticed there wasn’t a package yet and the API is fairly clear. So come and check it out {pinboardr} at https://github.com/RMHogervorst/pinboardr I did see a new package to ...
[Read more...]

Munging and reordering Polarsteps data

April 22, 2020 | 0 Comments

This post is about how to extract data from a json, turn it into a tibble and do some work with the result. I’m working with a download of personal data from polarsteps. A picture of Tokomaru Wharf (New Zealand) I was a month in New Zealand, birthplace of ...
[Read more...]

Where does the output of Rscript go?

April 13, 2020 | 0 Comments

We often run R interactively, through Rstudio or in the terminal. But you can also run Rscripts without manual intervention. Using Rscript. But where does the output go? Warning: This post is very linux/unix (macos) centred, I don’t know how this works in Windows. Also I’m using ... [Read more...]

Scraping Gdpr Fines

April 7, 2020 | 0 Comments

The website Privacy Affairs keeps a list of fines related to GDPR. I heard * that this might be an interesting dataset for TidyTuesdays. The dataset contains at this moment 250 fines given out for GDPR violations and is last updated (according to the website) on 31 March 2020. All data is from official ...
[Read more...]

Gosset part 2: small sample statistics

October 10, 2019 | 0 Comments

Simulation was the key to to achieve world beer dominance. ‘Scientific’ Brewing at scale in the early 1900s Beer bottles cheers This post is an explainer about the small sample experiments performed by William S. Gosset. This post contains some R code that simulates his simulations1 and the resulting determination ...
[Read more...]

Gosset part 2: small sample statistics

August 10, 2019 | 0 Comments

A NICE ONELINER HERE? This post is an explainer about the small sample experiment and determining the ideal sample size for inference. Economic perspectives and business logic Brewing beer at scale One of the problems William S. Gosset worked on was determining the quality of Malt. To brew beer you ...
[Read more...]

Quick post – detect and fix this ggplot2 antipattern

March 6, 2019 | 0 Comments

Recently one of my coworkers showed me a ggplot and although it is not wrong, it is also not ideal. Here is the TL:DR : Whenever you find yourself adding multiple geom_* to show different groups, reshape your data In software engineering there are things called antipatterns, ways of programming ...
[Read more...]

Graphing My Daily Phone Use

January 27, 2019 | 0 Comments

How many times do I look at my phone? I set up a small program on my phone to count the screen activations and logged to a file. In this post I show what went wrong and how to plot the results. The data I set up a small program ...
[Read more...]

Running an R script on heroku

December 5, 2018 | 0 Comments

In this post I will show you how to run an R script on heroku every day. This is a continuation of my previous post on tweeting a death from wikidata. Why would I want to run a script on heroku? It is extremely simple, you don’t need to ... [Read more...]

Tweeting wikidata info

November 18, 2018 | 0 Comments

In this explainer I walk you through the steps I took to create a twitter bot that tweets daily about people who died on that date. I created a script that queries wikidata, takes that information and creates a sentence. That sentence is then tweeted. For example: A tweet I ...
[Read more...]

interactive ggplot with tooltip using plotly

September 12, 2018 | 0 Comments

A quick Random R thing I use a lot, recently learned, and I want you to know it too. In this post I’ll show you how to make a quick interactive plot with ggplot and plotly, so that values are displayed when you hover your mouse over it. Why ...
[Read more...]

Use `purrr` to feed four cats

September 9, 2018 | 0 Comments

Use purrr to feed four cats In this example we will show you how to go from a ‘for loop’ to purrr. Use this as a cheatsheet when you want to replace your for loops. Imagine having 4 cats. (like this one:) Four real cats who need food, care and love ...
[Read more...]

Make more useless packages!

August 30, 2018 | 0 Comments

You should make more useless packages. To be more specific: make packages that are useful to you, but might be useless to others. Because building silly stuff is fun and sets the bar low for you to play and learn. I’m a big fan of Simone Giertz (see all ... [Read more...]

Arthur blinked, Ford shrugs, but Zaphod leapt; text as graph

July 23, 2018 | 0 Comments

Can we make the computer say something about characters in a book? In this piece I will search for the names of characters and the words around those names in books. What can we learn about a character from text analysis? Of course it’s also just another excuse for ...
[Read more...]

Reading in an epub (ebook) file with the pubcrawl package

July 18, 2018 | 0 Comments

In this tutorial I show how to read in a epub file (f.i. from your ebook collection on you computer) into R with the pubcrawl package. In emoji speak: 🍺📖📦 . I will show the reading in part, (one line of code) and some other actions you might want to perform ...
[Read more...]

Cleaning up and combining data, a dataset for practice

March 11, 2018 | 0 Comments

tldr: I created an open dataset for the explicit practice of data munging. Feel free to use it in assignments, but do mention where you got it from (CC-by-4.0). Also unicorns are awesome. Find the dataset at: https://github.com/RMHogervorst/unico... [Read more...]

Cleaning up and combining data, a dataset for practice

March 11, 2018 | 0 Comments

tldr: I created an open dataset for the explicit practice of data munging. Feel free to use it in assignments, but do mention where you got it from (CC-by-4.0). Also unicorns are awesome. Find the dataset at: https://github.com/RMHogervorst/unicorns_on_unicycles Data munging / cleaning / engineering At work ... [Read more...]

Adding logging to a shiny app with loggit

February 27, 2018 | 0 Comments

This is a very short post with example code Over time when you move your shiny app from your computer to a server, you want to add some logging. Generally logging is defined in levels : INFO (everything you want to print), WARNING (it does not sto... [Read more...]

Adding logging to a shiny app with loggit

February 27, 2018 | 0 Comments

This is a very short post with example code Over time when you move your shiny app from your computer to a server, you want to add some logging. Generally logging is defined in levels : INFO (everything you want to print), WARNING (it does not stop the application, but it ... [Read more...]
1 2 3

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)