try_date: Reliable Date/Datetime conversion for most time...

View source: R/Helpers.R

try_dateR Documentation

Reliable Date/Datetime conversion for most time representations from the Polygon.io & Alpaca.markets APIs

Description

Attempts to coerce input to a valid Date or POSIXct object.

Usage

try_date(.x, timeframe = "day", tz = NULL)

Arguments

.x

(numeric/character/Date/Datetime) input vector

timeframe

(character) The timeframe of the .x vector. See market_data.

tz

(character) Timezone. See OlsonNames for valid strings. Default NULL


jagg19/AlpacaforR documentation built on July 3, 2023, 12:14 p.m.