powered by
Guess the frequency of a data series based on the pattern of missing observations
get_data_frq(x = NULL, dates)
data, potentially with missing observations
corresponding dates in `as.Date()` format
The frequency of the data
# NOT RUN { dates <- as.Date(c("2020-1-1", "2020-1-15", "2020-2-1", "2020-2-15", "2020-3-1", "2020-3-15", "2020-4-1")) get_data_frq(c(1,NA,2,NA,3,NA,4), dates) ## "month" # }
Run the code above in your browser using DataLab