Functions for tidy analysis and generation of random data
