Should be S3 generic that dispatches on the type of the `data` argument, which will need to come first. Helpful for forecast (@robjhyndman) and sf objects.