format_dates | R Documentation |
Creates and adds columns date
and doy
(day-of-year) to the data source
(either data frame or database table naturecounts
).
format_dates(df_db, overwrite = FALSE)
df_db |
Either data frame or a connection to database with
|
overwrite |
Logical. Overwrite existing columns |
If df_db
was a data frame, return a data frame with new columns
date
and doy
. Otherwise return database connection.
bcch_with_dates <- format_dates(bcch)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.