Blog Archives

Structuring R projects

August 9, 2018
By

Structuring R projects is a necessary evil: nobody likes doing it, but everybody enjoys a well-structured, efficient project. This post takes you through some of the key principles of structuring a project well. The post Structuring R projects appeared first on Doodling in Data.

Read more »

Assignment in R: slings and arrows

July 30, 2018
By
Assignment in R: slings and arrows

Having recently shared my post about defensive programming in R on the r/rstats subreddit, I was blown away by the sheer number of comments as much as I was blown away by the insight many displayed. One particular comment by u/guepier struck my attention. In my previous post, I came out quite vehemently against using theRead more The post Assignment in...

Read more »

The Ten Rules of Defensive Programming in R

July 27, 2018
By
The Ten Rules of Defensive Programming in R

When you think of R, defensive coding may not be your first thought. But writing code that fails well & is easy to debug is more important than you'd think. The post The Ten Rules of Defensive Programming in R appeared first on Doodling in Data.

Read more »

Automagic epi curve plotting: part I

May 22, 2018
By
Automagic epi curve plotting: part I

Have you ever wanted to schedule tasks from R and run routine analytics repeatedly at regular intervals? Here's the best way to do it. The post Automagic epi curve plotting: part I appeared first on Doodling in Data.

Read more »

Get your Jupyterhub box set up on Linode with a single go!

May 6, 2018
By

Sometimes, we all need a research box spun up quickly. Here’s our way to a well-configured box in ten minutes. The post Get your Jupyterhub box set up on Linode with a single go! appeared first on Doodling in Data.

Read more »

Installing RStudio Server on Debian 9

April 1, 2018
By
Installing RStudio Server on Debian 9

A quick guide on setting up your own RStudio server on a Linode or other Debian-based UNIX server. The post Installing RStudio Server on Debian 9 appeared first on Doodling in Data.

Read more »

SafeGram: visualising drug safety

February 27, 2018
By
SafeGram: visualising drug safety

Update: an RMarkdown notebook explaining the whole process is available here. Visualising vaccine safety is hard. Doing so from passive (or, as we say it in Britain, ‘spontaneous’!) pharmacovigilance (PhV) sources is even harder. Unlike in active or trial pharmacovigilance, where you are essentially dividing the number of incidents by the person-time or the numberRead more The post SafeGram: visualising...

Read more »

T-tests

August 17, 2015
By
T-tests

One-Sample T-Tests To conduct a one-sample t-test in R, we use the syntax t.test(y, mu = 0) where x is the name of our variable of interest and mu is set equal to the mean specified by the null hypothesis. So, for example, if we wanted to test whether the volume of a shipment of

Read more »

Determine your Fitbit stride length using a GPS watch

July 15, 2014
By
Determine your Fitbit stride length using a GPS watch

I have been carrying my Fitbit One for a little over two years with me and it keeps tracking my daily steps. It also tracks my distance covered by multiplying those steps using the stride length which you can either provide explicitly or implicitly setting your heights. In the winter of 2012 I bought my … Continue reading Determine...

Read more »

Analyzing Sleep with Sleep Cycle App and R

January 28, 2014
By
Analyzing Sleep with Sleep Cycle App and R

I have been tracking my sleep for almost two years now using my Fitbit. I started with the Fitbit Ultra and then moved on the the Fitbit One after it came out. In October 2013 I found out about the Sleep Cycle (Link) app for the iPhone. For weeks, Sleep Cycle was listed as the … Continue reading Analyzing...

Read more »

Search R-bloggers


Sponsors

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)