Learn R Programming

fixtuRes (version 0.1.3)

random_date: Get random date from an interval

Description

Get random date from an interval

Usage

random_date(min_date, max_date, format = NULL)

Arguments

min_date

character or date, beginning of the time interval to sample from

max_date

character or date, ending of the time interval to sample from

format

character, check strptime for details

Examples

Run this code
# NOT RUN {
random_date("2012-12-04", "2020-10-31")
# }

Run the code above in your browser using DataLab