random_dates: Generates random dates between a start and end day.

View source: R/ehr_simulation.R

random_datesR Documentation

Generates random dates between a start and end day.

Description

dates are in usual R as.Date() format

Usage

random_dates(n, start_day, end_day)

Arguments

n

Number of dates to be returned

start_day

string representation of a start day

end_day

string representation of a start day

Details

Enter start and end dates in ISO format, e.g. "2001-02-04"

Value

a vector of dates


rOpenHealth/rEHR documentation built on Sept. 25, 2024, 5:32 p.m.