R utility functions for casualty actuaries