Posts

Showing posts from October, 2018

A Lazy Function

A Lazy Function A Lazy Function CillianMacAodh (Cillian McHugh) 20 October 2018 It has been quite a while since I posted, but I haven’t been idle, I completed my PhD since the last post, and I’m due to graduate next Thursday. I am also delighted to have recently been added to R-bloggers.com so I’m keen to get back into it. A Lazy Function I have already written 2 posts about writing functions, and I will try to diversify my content. That said, I won’t refrain from sharing something that has been helpful to me. The function(s) I describe in this post is an artefact left over from before I started using R Markdown. It is a product of its time but may still be of use to people who haven’t switched to R Markdown yet. It is lazy (and quite imperfect) solution to a tedious task. The Problem At the time I wrote this function I was using R for my statistics and Libreoffice for writing. I would run a test in R and then w