Articles by Roel M. Hogervorst

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

Setting up a version controlled shiny-server

February 5, 2018 | Roel M. Hogervorst

Last week I set up a shiny server, it was relatively easy! But I wanted something more, a way to make changes on my local computer and push it to the server. Shiny server (I used the open source version) has multiple installers provided by RStudio. The installers for shiny-server ... [Read more...]

add abbreviations to your rmarkdown doc

January 23, 2018 | Roel M. Hogervorst

Today a small tip for when you write rmarkdown documents. Add a chunk on top with abbreviations. in the first chunks you set the options and load the packages. Next create abbreviations, you don’t have to care about the ordering, just put them down as you realize you are ... [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)