Articles by R on datawookie

Private Security and the Pareto Principle

October 15, 2019 | 0 Comments

Private Security is a big industry in South Africa. Most Private Security companies promise to provide a rapid response to every callout generated by any of their customers. There is a delicate balance between the number of response vehicles and the number of customers (and the frequency of their callouts!), ...
[Read more...]

R, Docker and Checkpoint: A Route to Reproducibility

August 28, 2019 | 0 Comments

I need to deploy Shiny on a Windows machine. I also need to use {checkpoint} for package management. Using Docker seems to be the only reasonable approach to Shiny on Windows. But how easy would it be to also factor {checkpoint} into this setup? Only one reasonable way to find ...
[Read more...]

R, Docker and Checkpoint: A Route to Reproducibility

July 31, 2019 | 0 Comments

I need to deploy Shiny on a Windows machine. I also need to use {checkpoint} for package management. Using Docker seems to be the only reasonable approach to Shiny on Windows. But how easy would it be to also factor {checkpoint} into this setup? Only one reasonable way to find ...
[Read more...]

All Roads Lead to Rome

July 28, 2019 | 0 Comments

I was inspired by this visualisation, showing the optimal routes (by car) from the geographic centre of the USA to all counties. The proverb “All Roads Lead to Rome” immediately came to mind and I set out to hack together something along that theme. This is what was required: Find ...
[Read more...]

All Roads Lead to Rome

July 28, 2019 | 0 Comments

I was inspired by this visualisation, showing the optimal routes (by car) from the geographic centre of the USA to all counties. The proverb “All Roads Lead to Rome” immediately came to mind and I set out to hack together something along that theme. This is what was required: Find ...
[Read more...]

Recreating ‘Unknown Pleasures’ graphic

July 14, 2019 | 0 Comments

For some time I’ve wanted to recreate the cover art from Joy Division’s Unknown Pleasures album. The visualisation depicts successive pulses from the pulsar PSR B1919+21, discovered by Jocelyn Bell in 1967. Album art.Data The first obstacle was acquiring the data. I found a D3 visualisation by Mike ...
[Read more...]

Comrades Marathon (2019) Splits

June 30, 2019 | 0 Comments

I’m looking at ways to effectively visualise the splits data for the 2019 edition of the Comrades Marathon. My objectives are to provide: an overall view of the splits across the entire field and a detailed view for individual runners (relative to the rest of the field). Ridge Plot My ...
[Read more...]

Medal Breakdown at Comrades Marathon (2019)

June 29, 2019 | 0 Comments

A quick breakdown of the medal distribution at the 2019 edition of the Comrades Marathon. This is what the medal categories correspond to: Gold — first 10 men and women Wally Hayward (men) — 11th position to sub-6:00 Isavel Roche-Kelly (women)...
[Read more...]

Comrades Marathon: Start Delay

June 14, 2019 | 0 Comments

How long does it take to cross the start line at the Comrades Marathon? If you’re lucky enough to be starting in one of the batches which is close to the front then this might be a matter of seconds to a couple of minutes. But if you’re ...
[Read more...]

Comrades Marathon (2019) Start Delay

June 14, 2019 | 0 Comments

How long does it take to cross the start line at the Comrades Marathon? If you’re lucky enough to be starting in one of the batches which is close to the front then this might be a matter of seconds to a couple of minutes. But if you’re ...
[Read more...]

A Shiny Comrades Marathon Pacing App

June 3, 2019 | 0 Comments

The Comrades Marathon is an epic ultramarathon run each year between Durban and Pietermaritzburg (South Africa). A few years ago I put together a simple spreadsheet for generating a Comrades Marathon pacing strategy. But the spreadsheet was clunky to use and laborious to maintain. Plus I was frustrated by the ...
[Read more...]

emayili: Sending Email from R

May 26, 2019 | 0 Comments

At Exegetic we do a lot of automated reporting with R. Being able to easily and reliably send emails is a high priority. There is already a selection of packages for sending email from R: {mailR} {gmailr} {blastula} {blatr} (Windows) {mail} and {sendmailR}. We’ve had the most experience with ...
[Read more...]

Setting up an R Admin Group

April 10, 2019 | 0 Comments

When I set up an R server for clients they often want to be able to install packages so that all users on the machine have access to them. This requires them to be able to install the packages onto the root filesystem rather that under their individual home directories. ... [Read more...]

Integrating Qlik Sense and R

March 21, 2019 | 0 Comments

Components Qlik Sense is a tool for exploratory data analysis and visualisation. It’s powerful and versatile. It’s can, however, be significantly enhanced by interfacing with R. Qlik Sense does not currently integrate directly with R. However, it’s not too tricky to get the two systems talking to ...
[Read more...]

RServe: Getting Started

January 20, 2019 | 0 Comments

Rserve is a server which allows other programs to use the facilities of R via TCP/IP. Installing Since Rserve gets installed to system folders, you need to do the install as the root user. # Become root. $ sudo su # Run R as root. $ R __ install.packages("Rserve") Running To launch ... [Read more...]

Docker Images for R: r-base versus r-apt

January 20, 2019 | 0 Comments

I need to deploy a Plumber API in a Docker container. The API has some R package dependencies which need to be baked into the Docker image. There are a few options for the base image: r-base tidyverse or r-apt. The first option, r-base, would require building the dependencies from ... [Read more...]

JSON Payload for POST Request

January 9, 2019 | 0 Comments

Starting with JSON body because this is the way that most API documentation will give you the payload examples. body = '{ "filters": { "keywords": ["money","government"], "award_type_codes": [ "A", "B", "C", "D" ] }, "fields": [ "Award ID", "Mod", "Recipient Name", "Action Date", "Transaction Amount", "Awarding Agency", "Awarding Sub Agency", "Award Type" ], "page": 1, "... [Read more...]

Where does .Renviron live on Citrix?

January 7, 2019 | 0 Comments

At one of my clients I run RStudio under Citrix in order to have access to their data. For the most part this works fine. However, every time I visit them I spend the first few minutes of my day installing packages because my environment does not seem to be ...
[Read more...]

Survey Raking: An Illustration

December 25, 2018 | 0 Comments

Analysing survey data can be tricky. There’s often a mismatch between the characteristics of the survey respondents and and those of the general population. If the discrepancies are not accounted for then the survey results can (and generally will!) be misleading. A common approach to this problem is to ...
[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)