Articles by R - datawookie

Unravelling Transparency in Coverage Data

August 25, 2023 | R - datawookie

I have a challenge: extracting data from an enormous JSON file. The structure of the file is not ideal: it’s a mapping at the top level, which means that for most standard approaches the entire document needs to be loaded before it can be processed. It would have been ...
[Read more...]

{emayili} Support for ZeptoMail

November 26, 2022 | R - datawookie

The {emayili} package already has adapters which make it simple to send email via a variety of services. I have just added an adapter for the ZeptoMail transactional email service. The adapter is available in {emayili} version 0.7.13.
[Read more...]

{pagedown} Page Size & Margins

October 21, 2022 | R - datawookie

At Fathom Data we have been doing a lot of automated documentation and automated reporting. Although many of these documents are rendered to HTML, there’s an increasing demand for PDF documents. So we’ve had to raise out game in that department. The {pagedown} package has become invaluable. This ...
[Read more...]

Scaling Density Plots

October 7, 2022 | R - datawookie

I’m a density plot devotee. And, using geom_density() from {ggplot2} these plots are effortless to produce. However, sometimes the results of geom_density() are not exactly what I’m after. Here’s how I tweak them to give me precisely what I need.
[Read more...]

Calculating the Fire Danger Index (FDI)

September 7, 2022 | R - datawookie

In a previous post I took a look at some granular weather data that I acquired via the Weather API. One interesting application of these data is calculating the Fire Danger Index (FDI), which measures the degree of fire danger using information on dryness, wind speed, temperature and humidity.
[Read more...]

Using Shiny Server in Docker

September 6, 2022 | R - datawookie

A quick note on how to use the Shiny Server Docker image, rocker/shiny. I’m a big believer in starting with the simplest possible setup, getting that to work and then adding complexity in layers. We’ll start with a simple Shiny application in app.R.
[Read more...]

Linux Packages for R

August 8, 2022 | R - datawookie

Getting R set up on Linux can be somewhat frustrating. Many of the fundamental packages (like {devtools} or {remotes}) have implicit system dependencies. So installing these packages can involve numerous iterations back and forth between R and the shell while you figure out what those dependencies are and get them ...
[Read more...]

Historical Weather Data

August 6, 2022 | R - datawookie

I’m building a model which requires historical weather data from a selection of locations in South Africa. In this post I demonstrate the process of acquiring the data and doing some simple processing.
[Read more...]

Unravelling an Enormous JSON

August 2, 2022 | R - datawookie

I have a challenge: extracting data from an enormous JSON file. The structure of the file is very challenging: it’s a mapping at the top level, which means that for most standard approaches the entire document needs to be loaded before it can be processed. It would have been ...
[Read more...]

Unravelling Transparency in Coverage Data

August 2, 2022 | R - datawookie

I have a challenge: extracting data from an enormous JSON file. The structure of the file is not ideal: it’s a mapping at the top level, which means that for most standard approaches the entire document needs to be loaded before it can be processed. It would have been ...
[Read more...]

Great Britain Railway Network

July 15, 2022 | R - datawookie

Introducing the nascent R package {blimey} (repository). At this stage it contains only the following data: railways — latitude and longitude segments along railway lines (wide format); railways_pivot — latitude and longitude segments along railway lines (long format); and railway_stations — codes, names and locations of railway stations.
[Read more...]

Making Sense of Drug Prices

March 8, 2022 | R - datawookie

Drug pricing is complicated. In this post I take a look at reconciling ASP and WAC prices, focusing on normalising the WAC price per billing unit to achieve a price which is comparable to ASP. This post includes a number of case studies with the objective of laying out and ...
[Read more...]

{emayili} Updated Gmail Authentication

March 7, 2022 | R - datawookie

A recent announcement from Google stated that from 30 May 2022 they will no longer support login via username and password (this is the “less secure” option). The change will have an impact for people using the {emayili} package to send email from R, but will also affect many others who use ...
[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)