date_helper: A function to format dates and times stored in separate...

Description Usage Arguments Value Examples

Description

A function to format dates and times stored in separate columns

Usage

1
2
date_helper(date, time, tz = NULL, date_format = "%m/%d/%Y",
  time_format = "%H:%M")

Arguments

date

A character representation of the date

time

A character representation of the time

tz

The time zone with which the data was collected

date_format

An character string reflecting the storage format of the dates, to view options see ?base::strptime

time_format

An character string reflecting the storage format of the time, to view options see ?base::strptime

Value

A vector of class POSIXct

Examples

1
2
3
4
5
6
tst <- tibble::tibble(
  Date = "10/01/2017",
  Time = "11:33"
)

tst <- date_helper(tst$Date, tst$Time, tz = "UTC")

Huh/CamoMismatch documentation built on May 20, 2019, 4:25 p.m.