parse_dates: Convert UNIX epoch timestamps to datetime

Description Usage Arguments Examples

View source: R/parsing.R

Description

Helper function convert UNIX timestamps to datestamps. By default converts to America/Los_Angeles timezone.

Usage

1
parse_dates(dataframe, tz = base::Sys.timezone())

Arguments

dataframe

A dataframe containing some columns that may be dates

tz

Timezone to convert datestamp to

Examples

1
2
3
4
## Not run: 
parse_dates(data.frame(a = 1570914652, b = "adad", c = 123L))

## End(Not run)

bweiher/pelotonR documentation built on Jan. 9, 2021, 1:36 a.m.