Publications by HighlandR

Data Driven DIY

19.01.2018

Statisfix – Which fixing should I buy? I have a bathroom cabinet to put up. It needs to go onto a tiled plasterboard (drywall) wall. Because of the tiles, I can’t use the fixings I normally use to keep heavy objects fixed to the wall. And bog standard rawlplugs aren’t going to do the job. So what should I buy? YouTube to the resc...

1617 sym 2 img

Hardwired..for tidy text

29.01.2018

Song lyric and sentiment analysis for all So – a while back I did a tidy text analysis on Faith No More lyrics. I had thought about doing this with Metallica album lyrics, as they have had a long career, spanning thier late teens/twenties to their 50’s. However, I found the process of obtaining lyrics and getting them into shape for analysis ...

8582 sym R (500 sym/2 pcs) 52 img

Enter SadMan

02.02.2018

Yet more Metalliplots I’m just going to tidy up some issues from my last post where I did some tidytext analysis on the legendary rockers – Metallica. It was a fun way to pass some time and keep my hand in with text mining, something I still don’t seem to get around to doing in the day job. I was pretty annoyed at not getting my faceted spl...

2888 sym R (847 sym/1 pcs) 36 img

Theory free tidyeval

18.02.2018

Getting our feet wet with dplyr programming – I’ve been putting off trying to suss out dplyr’s tidy evaluation for a long time, but I’ve been experimenting a bit with it so just making some notes here. It’s hard to talk about tidy evaluation / Non Standard Evaluation without getting into a whole load of theory, but I’m goin...

4423 sym R (1199 sym/4 pcs)

No strings attached

03.03.2018

a faceting function with bare variable names in ggplot2 – I’m working on a package of dplyr and ggplot2 functions that I can use on a day to day basis to plot data over time. I’ve done some basic experimenting with my preferred ggplot2 theme settings (highlandrthemes – it’s a thing), and the next stage is to get some commonly u...

3832 sym R (3368 sym/7 pcs) 10 img

backed by data

01.04.2018

Minmising risk of delayed departure – This post is an attempt to answer this question: https://community.rstudio.com/t/how-to-answer-a-question-without-statistical-tests-but-is-backed-by-data/3711 It was a pretty interesting question, and I had an initial stab at providing an answer, but the charts I submitted were not the best looking...

6345 sym R (5055 sym/16 pcs) 22 img

AphA Scotland – it’s a thing

12.05.2018

Reflections on AphA Scotland launch event – On Tues 8th May there was only one Scottish based member of the Association of Professional Healthcare Analysts (me) but on Wed 9th May that number rose to around 80 with the launch of the the Scotland AphA Branch. The event took place in the very nice Perth Concert Hall, and consisted of se...

4991 sym

simpler SQL with dplyr

31.05.2018

comparing dplyr with SQL nested queries – Following on from my last post, where I demonstrated R to some first time R users, I want to do a wee comparison of dplyr V SQL, so that folks, particularly those in the NHS who might be R curious, can see just what the fuss is about. To do so I want to recap on the example I showed at the AphA...

5710 sym 10 img

Even Simpler SQL

02.06.2018

I’ve had some feedback on the last post, and rather than repeat the same thing multiple times, I’m going all @drob, and writing this instead.. When I tweeted out the link to my post I gave it the tag line “why I’d rather write dplyr than SQL”. What I couldn’t fit in to the tweet was that this was based on the caveat that some of the S...

3628 sym R (1510 sym/4 pcs)

Tidily evaluated ggplot2

03.07.2018

Test driving the new release of ggplot2 – A new release of ggplot2 Now that tidy evaluation is baked into ggplot2, as of TODAY, let’s take it for a spin: ggplot2 3.0.0 %>% create function %>% test function %>% end library(dplyr) library(ggplot2) library(tidyr) library(tibble) data <- list(fdeaths,mdeaths,ldeaths) #time series data- ...

649 sym R (1086 sym/2 pcs) 2 img