R functions for working with transport data and models