add_years {diseasystore} | R Documentation |
Backend-dependent time interval (in years)
Description
Provides the sql code for a time interval (in years).
Usage
add_years(reference_date, years, conn)
Arguments
reference_date |
( |
years |
( |
conn |
( |
Value
SQL query for the time interval.
Examples
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)
[Package diseasystore version 0.3.0 Index]