random_time_vector: Get random time vector from an interval

Description Usage Arguments Examples

View source: R/vectors.R

Description

Get random time vector from an interval

Usage

1
2
3
4
5
6
7
random_time_vector(
  size,
  min_time = "00:00:00",
  max_time = "23:59:59",
  resolution = "seconds",
  unique = FALSE
)

Arguments

size

integer, vector length

min_time

character, beginning of the time interval to sample from

max_time

character, ending of the time interval to sample from

resolution

character, one of "seconds", "minutes", "hours", time resolution

unique

boolean, should the output be unique?

Examples

1
random_time_vector(12, "12:23:00", "15:48:32")

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