This helper function uses argument matching to resolve the resolution from input. The function also handles casing. This will allow, for example, an input resolution of "daily" or "day" to be resolved to "days".
resolve_resolution(resolution)
If the resolution matches to "days", "weeks", or "months" then the match will be returned. If not, the function will throw an error.
Character vector specifying the temporal resolution (e.g., "days", "weeks", "months")