R codes used to analyses data from Groby Pool