random_test_dates: generate random Dates or POSIXlt test datetimes

Description Usage Arguments Value

View source: R/testing.r

Description

generate random Dates and POSIXlt test datetimes

Usage

1
2
3
4
5
random_test_dates(n = n_rnd, origin = as.Date("2000-01-01"),
  dayspread = 365 * 150)

random_test_posixlt_datetimes(n = n_rnd,
  origin = as.Date("2000-01-01"), dayspread = 365 * 150)

Arguments

n

integer number to generate

origin

Date defaults to Jan 1, 2000.

dayspread

integer number of days either side of origin to pick random dates from, defaults to 150 years.

Value

vector of POSIXlt datetimes or Dates


jackwasey/jwutil documentation built on Dec. 5, 2018, 5:31 a.m.