powered by
Automatically detects whether data is daily, weekly, monthly, or quarterly based on date spacing.
get_data_frequency(dates)
Character string: "daily", "weekly", "monthly", or "quarterly"
Vector of Date objects
data("sample_prices_weekly") freq <- get_data_frequency(sample_prices_weekly$Date)
Run the code above in your browser using DataLab