l.s.samp_date: Sample dates from given interval.

Description Usage Arguments Examples

Description

Sample dates from given interval.

Usage

1
l.s.samp_date(interval, size=10, sorted=FALSE, origin="1970-01-01", replace=TRUE)

Arguments

interval

Vector of length 2. It can be Date, numeric or POSIXct

size

size of sample

sorted

if results should be sorted.

origin

character with date as a origin.

replace

logical.

Examples

1
2
3
l.s.samp_date(as.Date(c('2017-11-24','2014-11-28')))
l.s.samp_date(c(1,30))
l.s.samp_date(as.POSIXct(c('2013-11-12 07:45:34','2014-09-23')))

lucas9999/l.s documentation built on May 21, 2019, 8:53 a.m.