Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

realtime_add_local_datetime

Add local datetime column to realtime tibble


Description

Adds local_datetime and tz_used columns based on either the first timezone specified into the tibble or a user supplied timezone. This function is meant to used in a pipe with the realtime_dd() function.

Usage

realtime_add_local_datetime(.data, set_tz = NULL)

Arguments

.data

Tibble created by realtime_dd

set_tz

A timezone string in the format of OlsonNames()

Details

Date from realtime_dd is supplied in UTC which is the easiest format to work with across timezones. realtime_add_local_datetime adjusts local_datetime to a common timezone. This is most useful when all stations exist within the same timezone though it is possible.

Examples

## Not run: 

realtime_dd(c("08MF005","02LA004")) %>%
 realtime_add_local_datetime()

## End(Not run)

tidyhydat

Extract and Tidy Canadian 'Hydrometric' Data

v0.5.2
Apache License (== 2.0) | file LICENSE
Authors
Sam Albers [aut, cre] (<https://orcid.org/0000-0002-9270-7884>), David Hutchinson [ctb], Dewey Dunnington [ctb], Ryan Whaley [ctb], Province of British Columbia [cph], Luke Winslow [rev] (Reviewed for rOpenSci), Laura DeCicco [rev] (Reviewed for rOpenSci)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.