extract_time: Extracts time from data frame

Description Usage Arguments Value See Also

View source: R/extract-datetime.r

Description

Extracts time from data frame

Usage

1
2
extract_time(data, prefix = "", suffix = "", expand = c("Hour", "Minute",
  "Second"), tz = "PST", standardised_offset = -8)

Arguments

data

data.frame with columns of [prefix]expand[suffix], [prefix]expand[suffix] values etc

prefix

string

suffix

string

expand

character vector of column names where [prefix]expand[suffix] and expand must only be Hour, Minute and/or Second

tz

string of time zone

standardised_offset

an integer scalar indicating the time difference in hours between UTC and the desired time zone.

Value

A datetime object

See Also

sql_datetime and ISOdatetime


poissonconsulting/poiscon documentation built on Feb. 18, 2021, 11:16 p.m.