You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a bug in the chunk of code that creates new variables from a date/time one.
Here my suggestions:
autogen_datetime_columns <- character()
if(!is.null(config$DateTimeColumns[[1]])){
for (i in 1:length(config$DateTimeColumns) ) { #<-- new
#for (dt in names(config$DateTimeColumns)) { #<-- old
dt <- names(config$DateTimeColumns[[i]])
data[[dt]] <- as.POSIXct(data[[dt]], format = config$DateTimeColumns[[i]][[dt]]) #<-- new
#data[[dt]] <- as.POSIXct(data[[dt]], format = config$DateTimeColumns[[dt]]) #<-- old
...
I found a bug in the chunk of code that creates new variables from a date/time one.
Here my suggestions:
HTH