istacbaseperiodos2POSIXct: Add a POSIXct dates to a ISTACBASE API return

Description Usage Arguments Value

View source: R/istacbaseperiodos2POSIXct.R

Description

Add a POSIXct date column as well as a column with the appropreiate granularity to a ISTACBASE API return

Usage

1

Arguments

df

data frame returned from API call

date_col

name of the current date field

Value

If the package lubridate (>= 1.5.0) is available the original data frame with two new columns, fecha and periodicidad is returned. If the above package is not available, the orignal data frame is returned unaltered with an additional warning message.


chrglez/istacr documentation built on June 8, 2020, 7:04 p.m.