R functions for automating progress analsysis