Articles by R on datawookie

Retail Data: R Package

March 14, 2020 | R on 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 wo... [Read more...]

Private Security and the Pareto Principle

October 15, 2019 | R on datawookie

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

All Roads Lead to Rome

July 28, 2019 | R on datawookie

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 | R on datawookie

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 | R on datawookie

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 | R on datawookie

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

Comrades Marathon: Start Delay

June 14, 2019 | R on datawookie

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 | R on datawookie

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 | R on datawookie

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 | R on datawookie

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 | R on datawookie

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 | R on datawookie

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 | R on datawookie

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 | R on datawookie

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 | R on datawookie

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 | R on datawookie

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