Learn R Programming

rplanes (version 0.1.0)

resolve_resolution: Resolve resolution

Description

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".

Usage

resolve_resolution(resolution)

Value

If the resolution matches to "days", "weeks", or "months" then the match will be returned. If not, the function will throw an error.

Arguments

resolution

Character vector specifying the temporal resolution (e.g., "days", "weeks", "months")