wbdate2POSIXct: Add a POSIXct dates to a World Bank API return
Description
Add a POSIXct date column as well as a column with the
appropreiate granularity to a World Bank API return
Usage
wbdate2POSIXct(df, date_col)
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,
data_ct and granularity is returned. If the above package is not available,
the orignal data frame is returned unaltered with an additional warning message.