monitor_timeRange: Get the time range for a monitor

View source: R/monitor_timeRange.R

monitor_timeRangeR Documentation

Get the time range for a monitor

Description

This function is a wrapper for range(monitor$data$datetime) and is convenient for use in data pipelines.

Dates will be returned in the timezone associated with monitor$data$datetime which is typically "UTC" unless timezone is specified.

Usage

monitor_timeRange(monitor = NULL, timezone = NULL)

Arguments

monitor

mts_monitor object.

timezone

Olson timezone for the returned dates.

Value

A vector containing the minimum and maximum times of a mts_monitor object.

Examples

Carmel_Valley %>%
  monitor_timeRange(timezone = "America/Los_Angeles")

AirMonitor documentation built on Aug. 26, 2023, 1:08 a.m.