seq_date_sql | R Documentation |
Create a calendar table in sql
seq_date_sql(start_date, end_date, time_unit, con)
start_date |
calendar start date in YYYY-MM-DD format |
end_date |
calendar end date in YYYY-MM-DD format |
time_unit |
calendar table unit in 'day', 'week', 'month', 'quarter' or 'year' |
con |
database connection |
DBI object
con <- DBI::dbConnect(drv = duckdb::duckdb())
seq_date_sql(start_date = "2015-01-01", end_date = "2024-04-20", time_unit = "day", con = con)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.