diff --git a/R/NcDataReader.R b/R/NcDataReader.R index d0455e51ce15e0ae60ee28fd4961e6fd7eaf09aa..82131288a7e8b53d1edb9fc6467fd8a594e3b631 100644 --- a/R/NcDataReader.R +++ b/R/NcDataReader.R @@ -157,6 +157,9 @@ NcDataReader <- function(file_path = NULL, file_object = NULL, units <- 'mins' } else if (units == 'day') { units <- 'days' + } else if (units %in% c('month', 'months')) { + result <- result * 30.5 + units <- 'days' } new_array <- rep(as.POSIXct(parts[2]), length(result)) +