Publications by Roel M. Hogervorst
Generate text using Markov Chains (sort of)
Inspired by the hilarious podcast The Greatest Generation, I have worked again with all the lines from all the episode scripts of TNG. Today I will make a clunky bot (although it does nothing and is absolutely not useful) that talks like Captain Picard. I actually wanted to use a Markov Chain to generate text. A Markov Chain has a specific prope...
5869 sym R (2870 sym/8 pcs)
Writing manuscripts in Rstudio, easy citations
Intro and setup This is a simple explanation of how to write a manuscript in RStudio. Writing a manuscript in RStudio is not ideal, but it has gotten better over time. It is now relatively easy to add citations to documents in RStudio. **The goal is not think about formatting, and citations, but to write the manuscript and add citations on the fl...
7589 sym Python (1076 sym/3 pcs) 14 img
Turning kindle notes into a tidy data
It is my dream to do everything with R. And we aRe almost there. We can write blogs in blogdown or bookdown, write reports in RMarkdown (thank you Yihui Xie!) create interactive webpages with Shiny (thank you Winston Chang). Control our lifx lights with lifxr (great work Carl!) and use emoticons everywhere with the emo package. There is even a no...
9460 sym R (9178 sym/12 pcs) 1 tbl
UseR Brussels 2017
I went to UseR-2017 in Brussels. It was my first time at an UseR (I have been to the first satRday), AND I LOVED IT! There were many interesting talks, I am so going to use Fast Frugal Trees in the future for instance and I saw a lot of shiny applications and R professional. But best of all. I talked to a lot of people, people I only spoke to on...
1622 sym
Where to live in the Netherlands based on temperature XKCD style
After seeing a plot of best places to live in Spain and the USA based on the weather, I had to chime in and do the same thing for the Netherlands. The idea is simple, determine where you want to live based on your temperature preferences. First the end result: How to read this plot? In this xkcd comic we see that the topleft of the the graph re...
3671 sym R (4064 sym/3 pcs) 10 img
Building the oomsifyer
Today I will show you a quick hack (OK it took me like 4 hours during my travels today yesterday and today), on how to add a dancing banana to any picture. Now, you might be thinking… Really, why would you add a dancing banana to a picture, but I don’t have time for that kind of negativity in my life. Why oomsifier? Jeroen Ooms is one of tho...
2655 sym R (1185 sym/1 pcs) 6 img
Downloading files from a webserver, and failing.
Recently I wanted to download all the transcripts of a podcast (600+ episodes). The transcripts are simple txt files so in a way I am not even ‘web’-scraping but just reading in 600 or so text files which is not really a big deal. I thought. This post shows you where I went wrong Also here is a picture I found of scraping. Webscraping gen...
5192 sym R (1347 sym/4 pcs) 2 img
If blogging was like academia, we would all be saved, thank you for your edits.
A month ago I posted a short piece inspired by a post by Maële Salmon She actually reached out to me in 10 minutes, telling me I made a weird spelling error (no excuses, I really make those a lot). Then a day or two later Jon Spring walked through the code and realized that I switched two outcomes in the code. Just about 10 days ago I posted ab...
1973 sym 2 img
If blogging was like academia, we would all be saved, thank you for your edits.
A month ago I posted a short piece inspired by a post by Maële Salmon She actually reached out to me in 10 minutes, telling me I made a weird spelling error (no excuses, I really make those a lot). Then a day or two later Jon Spring walked through the code and realized that I switched two outcomes in the code. Just about 10 days ago I posted a...
2076 sym 2 img
Adding bananas from the commandline (extending the oomsifier)
Sometimes you just want to add bananas from the commandline. Previously I created a small script that takes an image and adds a dancing banana to the bottom left of the image. I wanted to make an API too, but that will have to wait till next year. Today we will create a commandline script that will do the same thing. With the excellent explanatio...
2495 sym R (1705 sym/3 pcs) 2 img