| add_years | R Documentation | 
Provides the sql code for a time interval (in years).
add_years(reference_date, years, conn)
| reference_date | ( | 
| years | ( | 
| conn | ( | 
SQL query for the time interval.
  conn <- SCDB::get_connection(drv = RSQLite::SQLite())
  dplyr::copy_to(conn, data.frame(birth = as.Date("2001-04-03"), "test_age")) |>
    dplyr::mutate(first_birthday = !!add_years("birth", 1, conn))
  DBI::dbDisconnect(conn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.