Articles by Roel M. Hogervorst

Expressing size in bananas a dive into {vctrs}

June 7, 2020 | Roel M. Hogervorst

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 | Roel M. Hogervorst

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 | Roel M. Hogervorst

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 | Roel M. Hogervorst

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 | Roel M. Hogervorst

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 | Roel M. Hogervorst

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 | Roel M. Hogervorst

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

Graphing My Daily Phone Use

January 27, 2019 | Roel M. Hogervorst

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 | Roel M. Hogervorst

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 | Roel M. Hogervorst

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

Use `purrr` to feed four cats

September 9, 2018 | Roel M. Hogervorst

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 | Roel M. Hogervorst

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

Adding logging to a shiny app with loggit

February 27, 2018 | Roel M. Hogervorst

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 4

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)