Publications by - r
Forecasting tools in development
As I’ve been writing up a progress report for my NIGMS R35 MIRA award, I’ve been reminded at how much of the work that we’ve been doing is focused on forecasting infrastructure. A common theme in the Reich Lab is making operational forecasts of infectious disease outbreaks. The operational aspect means that we focus on everything from devel...
4142 sym 2 img
Which X-Men character had it worst?
(Tidy Tuesday is a project to supply weekly data sets for R users to practice their coding skills on. You can find full details here.) A little late, but I decided to have a go at Tidy Tuesday with the recent Claremont Run dataset, looking at Chris Claremont’s 16 year run writing for the Uncanny X-men comic. Looking at the characters dataset pr...
1461 sym R (1700 sym/1 pcs) 4 img
Astronaut Mission Length: Longest v Average
(Tidy Tuesday is a project to supply weekly data sets for R users to practice their coding skills on. You can find full details here.) This week’s Tidy Tuesday dataset “contains publicly available information about all astronauts who participated in space missions before 15 January 2020 collected from NASA, Roscosmos, and fun-made websites.�...
2063 sym R (2521 sym/1 pcs) 2 img
tinieR 0.1.0
TLDR: I wrote an R package. You can find it here: tinieR – An R package to shrink image filesizes with TinyPNG.com I learnt R about a year ago to do the statistical testing for my dissertation. While borne of neccessity, it ended up kickstarting a whole coding journey for me. I’d done some dabbling in the past, but R was the first language th...
6937 sym R (326 sym/2 pcs)
tinieR Update
Developing my first R package, tinieR was one of the most rewarding projects I’ve done this summer (and I’ve been busy). So much so that I couldn’t stop tinkering with it; and so now here’s tinieR 0.2.0, with added resize ability and more choice in how it returns the newly tinified file path! Resizing You can now use the resize argument t...
2156 sym R (203 sym/2 pcs)
How joyful were the Friends main characters?
(Tidy Tuesday is a project to supply weekly data sets for R users to practice their coding skills on. You can find full details here.) This week’s Tidy Tuesday dataset makes use of the friends package put together by Emil Hvitfeldt. It contains a bunch of datasets put together by analysing the transcripts of the TV show ‘Friends’. One of th...
2934 sym R (2213 sym/1 pcs) 2 img
Bookdown, Not Bookout
I first got to grips with the R coding language to do the statistical analysis for my dissertation, but I still did all my actual writing in more traditional word processing apps. 1 This became a pain any time I needed to copy-paste an update into a table or, even worse, change a plot and re-export to an image and re-import it into my writing env...
14052 sym R (2902 sym/6 pcs) 4 img
Scrivdown
In my last post on Bookdown, I mentioned using writing environments other than RStudio to work on non-code text sections. As I recommended in that post, I’ve been using iA Writer as my main text editor. It’s a great plain editor – I’m using it to write this post now. But, as my last big writing project got bigger, and bigger 1, I found my...
18546 sym R (1358 sym/10 pcs) 18 img
Pandoc filters in Bookdown
tldr: I wrote a Pandoc Lua filter to correctly format my Bookdown/Rmarkdown documents no matter the output file. You can see the filter as a Github gist here. Apparently I’m never satisfied enough to stop futzing around with Bookdown. I’ve been twiddling and tweaking settings endlessly to see what kind of documents I can produce and, more imp...
10469 sym R (1656 sym/7 pcs) 10 img
tinieR 0.4.1
I got really, really bored this week, so I decided to go back to the R package, tinieR, that I released last year (if you haven’t seen it before, tinieR shrinks image file sizes using the TinyPNG.com API). My idle tinkering ended up with a few cool little additions to the package, so I figured it was time for a new release: v0.4.1! Why 0.4.1? ...
3438 sym