Tim Farewell

  • Blog
  • Contact

R

Blog

Why cleaning data should be a priority for all businesses this year

Is your organisation’s data as clean as its toilets? This weekend, I spent over two hours deep cleaning our downstairs bathroom. Let’s be clear. I’m not one of those people who loves cleaning.  However, we do have three vivacious kids who enjoy playing outside (barefoot) and so a certain amount Read more…

By Dr Timothy S Farewell, 2 years2 years ago
Blog

Loading packages: the difference between R’s library() and require() functions

the power of packages in R One of the wonderful things about R / RStudio are the many, many packages which expand the capabilities of R. There are a suite of packages that I use most weeks – these include ggplot2 (for plotting), data.table (for fast data manipulation) and foreign Read more…

By Dr Timothy S Farewell, 2 years2 years ago
data

How to train your GLM model 20 times faster

Predicting pipe failures with GLMs in R A lot of my time is helping infrastructure companies predict where and when their pipes will fail. One of the approaches I commonly use is to build generalised linear models (GLMs), to predict the location and timing of failures on the basis of Read more…

By Dr Timothy S Farewell, 3 years2 years ago
Blog

Is data.table or dplyr faster at summarising data?

Is data.table or tidyverse’s dplyr faster at summarising data? When dealing with large datasets, I commonly have to summarise data in order to discover, and then communicate the relevant information. Tabular summaries in R like these are similar to using a pivot table in Excel, but with two differences: 1) Read more…

By Dr Timothy S Farewell, 3 years3 years ago
Blog

4 good reasons to use R for Infrastructure Data Science

Chances are that you have started to hear more about R in the last few years, and you’ve wondered if you should be using it in your work. In this post I explore the reasons why I now use R for almost all my work with environmental and infrastructure data. Read more…

By Dr Timothy S Farewell, 4 years4 years ago
Blog

My easy R script header template

Do you ever face a blank script, and not know where to start? This is one reason I find it useful to have a template to follow for my R scripts. The three main reasons I use a template are as follows: a template gets me started, so I rarely Read more…

By Dr Timothy S Farewell, 4 years3 years ago
Blog

Setting the working directory for R when working on both Mac and PC

I always encourage my students (and myself) to try to work in a reproducible manner. It is a bit slower at the start but pays dividends in the end when you have to re-do things (which happens all the time) or if you misplace some data. To work reproducibly, when Read more…

By Dr Timothy S Farewell, 4 years4 years ago
Recent Posts
  • Is your to-do list hurting you, or helping you?
  • How to stay on course to achieve your goals
  • RESET! How to flip 2020 into a successful year
  • Excellence is needed in more ways than ever. Will we rise to the challenge?
  • Why cleaning data should be a priority for all businesses this year
Recent Comments
  • Dr Timothy S Farewell on Setting the working directory for R when working on both Mac and PC
  • Adam Howes on Setting the working directory for R when working on both Mac and PC
Archives
  • July 2020
  • June 2020
  • May 2020
  • June 2019
  • February 2019
  • December 2018
  • April 2018
  • June 2017
Categories
  • Blog
  • data
  • Geohazards
  • productivity
  • R
  • Uncategorized
Meta
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
  • gluten , dairy and soya free recipes
Hestia | Developed by ThemeIsle