Learn R Programming

rmapzen (version 0.4.0)

mz_date_time: Create mz_date_time objects

Description

Mobility services (such as mz_isochrone) take, optionally, a date_time argument that specifies the date and time along with type (departure/arrival). This function constructs the appropriate objects to use as date_time arguments.

Usage

mz_date_time(date_time, type = "departure")

Arguments

date_time

A POSIXt date-time object

type

"departure" or "arrival"