Articles by R | datawookie

Setting up postref Shortcode for Remote Blog

February 9, 2021 | R | datawookie

I ran into a bit of a snag when updating a {blogdown} site. Suddenly, inexplicably, the images were no longer present. When I investigated I found that some HTML tags looked like this:
<img src="{{< blogdown/postref >}}index_files/figure-html/unnamed-chunk-3-1.png">
Obviously there’s something wrong there! And that {{__ blogdown/postref __}} looks like a Hugo shortcode. After ...
[Read more...]

Levies, Tax and the Fuel Price in South Africa

January 31, 2021 | R | datawookie

According to the Automobile Association (AA) the fuel price is the sum of four main components: the basic fuel price the general fuel levy the Road Accident Fund (RAF) levy and wholesale and retail margins, distribution and transport costs. This article suggests that almost 70% of the fuel price in South ...
[Read more...]

This is not Rain: It’s a Trickle

January 29, 2021 | R | datawookie

I started using rain (a South African ISP) back in March 2019. The coverage was good (the only place I couldn’t get a signal was at Lanseria Airport), while the bandwidth was consistently high. I loved the fact that it was affordable, reliable and portable. So much has changed. Rain ...
[Read more...]

Cyril’s Speeches

January 13, 2021 | R | datawookie

The transcripts for the South African President’s speeches are available here. I’ve just added these data to the {saffer} package. library(saffer) Let’s take a look. glimpse(president_speeches) Rows: 621 Columns: 6 $ date 2016-01-...
[Read more...]

Topographic Maps for South Africa

January 11, 2021 | R | datawookie

I’ve been adding topological maps of South Africa to the saffer-data-map repository. The maps are originally in MrSID format (.sid files), which is a proprietary file format developed by LizardTech (a company which has been consumed by Extensis). Although MrSID is efficient from a storage perspective, it’s challenging ...
[Read more...]

Price of Fuel in South Africa

January 9, 2021 | R | datawookie

The {saffer} package is a nascent collection of things relating to South Africa. I’ve just added fuel price data. The {saffer} package can be installed from GitHub. remotes::install_github("datawookie/saffer") Then load it up and you’re ...
[Read more...]

Retail Pricing: Latex Gloves

January 5, 2021 | R | datawookie

A couple of days ago I posted an analysis of the price of nitrile gloves at Dischem. @mattdenni the price of nitrile gloves has increased dramatically over the last year.More details at https://t.co/nTm481mjwH.@AndrewJacksonZA this might be of int...
[Read more...]

Retail Pricing: Latex Gloves at Clicks

January 5, 2021 | R | datawookie

A couple of days ago I posted an analysis of the price of nitrile gloves at Dischem. @mattdenni the price of nitrile gloves has increased dramatically over the last year.More details at https://t.co/nTm481mjwH.@AndrewJacksonZA this might be of int...
[Read more...]

Running History: Garmin Connect

January 4, 2021 | R | datawookie

I had a suspicion that there was more data beyond the history that I got from Strava (see previous post). And indeed my hunch was confirmed by downloading my history from Garmin Connect. My history now goes back to 2013.
[Read more...]

Retail Pricing: Nitrile Gloves

January 3, 2021 | R | datawookie

My colleague, Matt, noted that nitrile gloves are getting really expensive. These things are getting really expensive! pic.twitter.com/RwJoMS5Xoy— Matt Dennis (@mattdenni) January 4, 2021 Is this real or only in his mind? Let’s check it out with Trundler. Setup Load the library and set API key.
library(trundler)

API_KEY <- Sys.getenv("TRUNDLER_KEY")

set_api_key(API_KEY)
...
[Read more...]

Retail Pricing: Nitrile Gloves at Dischem

January 3, 2021 | R | datawookie

My colleague, Matt, noted that nitrile gloves are getting really expensive. These things are getting really expensive! pic.twitter.com/RwJoMS5Xoy— Matt Dennis (@mattdenni) January 4, 2021 Is this real or only in his mind? Let’s check it out with Trundler. Setup Load the library and set API key.
library(trundler)

API_KEY <- Sys.getenv("TRUNDLER_KEY")

set_api_key(API_KEY)
...
[Read more...]

Running History: Strava

January 1, 2021 | R | datawookie

I’ve been itching to do some analytics on my running data. Today seemed like a good time to actually do it. I’ll be generating some plots using the {strava} package developed by Marcus Volz. Get the Format Right The GPS files in my Strava archiv...
[Read more...]

Shiny Server with HTTP Authentication

June 28, 2020 | R | datawookie

Suppose you have an applocation running on a Shiny server and you want to add HTTP authentication so that it’s only accessible via a username and password. This can be done using NGINX. Test Shiny Server The Shiny server should be accessible at ...
[Read more...]

Retail Data: R Package

March 14, 2020 | R | datawookie

Have you ever noticed how things seem to get really expensive at specific times of the year? Like Mother’s Day and Valentine’s Day? Have you ever felt a bit ripped off when buying an over-priced bouquet of flowers or box of chocolates? Have you ever wondered just how ...
[Read more...]

Retail Data: R Package

March 14, 2020 | R | datawookie

Have you ever noticed how things seem to get really expensive at specific times of the year? Like Mother’s Day and Valentine’s Day? Have you ever felt a bit ripped off when buying an over-priced bouquet of flowers or box of chocolates? Have you ever wondered just how ...
[Read more...]

R Package for @racently

December 5, 2019 | R | datawookie

I recently wrote about an API for @racently. The next logical step was to build a package which wraps the API so that the data can easily be pulled into R. The package is available here. It is still very much a work in progress: the API only exposes two ...
[Read more...]

R Package for @racently

December 5, 2019 | R | datawookie

I recently wrote about an API for @racently. The next logical step was to build a package which wraps the API so that the data can easily be pulled into R. The package is available here. It is still very much a work in progress: the API only exposes t...
[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)