add gavin function - start working through function with view to using in plyr
Merge branch 'master' of https://github.com/JonMinton/Siting_Data