plot_date_to_age_quarter: Depict the intervals created by function...

Description Usage Arguments Details Examples

View source: R/plot_date_to_age.R

Description

Create a plot illustrating how function date_to_age_quarter works.

Usage

1
plot_date_to_age_quarter(date, dob, show_months = FALSE)

Arguments

date

Dates of events or measurements. A vector of class Date, or a vector that can be coerced to class Date using function as.Date.

dob

Dates of birth. A vector of class Date, or a vector that can be coerced to class Date using function as.Date.

show_months

Whether to include vertical lines showing boundaries between months. Defaults to FALSE.

Details

plot_date_to_age_quarter is typically used for learning or documentation, rather than for actual data analysis.

Examples

1
2
3
4
plot_date_to_age_quarter(date = c("2004-03-27",
                                  "2002-11-09"),
                         dob = c("2001-03-21",
                                 "2000-07-13"))

johnrbryant/demprep documentation built on Dec. 31, 2021, 11:58 a.m.