random_date_vector: Get random date vector from an interval

Description Usage Arguments Examples

View source: R/vectors.R

Description

Get random date vector from an interval

Usage

1
random_date_vector(size, min_date, max_date, format = NULL, unique = FALSE)

Arguments

size

integer, vector length

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

unique

boolean, should the output be unique?

Examples

1
random_date_vector(12, "2012-12-04", "2020-10-31")

jakubnowicki/fixtuRes documentation built on Feb. 20, 2022, 6:14 a.m.