Learn R Programming

rEHR (version 1.0)

build_date_fn: Function to build start/enddate helper fuctions

Description

This builds functions identical to qof_years but they can be customised to the user's preferences

Usage

build_date_fn(start, end)

Arguments

start
list containing the offset in years, month and day as numerics for the start date
end
list containing the offset in years, month and day as numerics for the end date

Value

a function taking a year as an argument and returning a list of startdates and enddates