rdate: Build random dates

Description Usage Arguments Details

View source: R/density_estimates.R

Description

Based on the dates at the given table column, generate a kernel density estimate and return a random column of dates (with the same distribution)

Usage

1
2
rdate(tbl, cols, size, sparse = FALSE, trim = 0.001, adj = 0.1,
  n = 1000)

Arguments

tbl

Table name

cols

Column name

size

Number of rows for the output

sparse

Consider and estimate also the fraction of missing data

trim

Passed to getDensity

adj

Passed to getDensity

n

Passed to getDensity

Details

The date distribution is estimated as a one-dimensional kernel density with density with the standard notation that day zero equals 1970-01-01 00:00:00 (see the output of unclass(as.Date("1970-01-01"))), and the consecutive days are numbered sequentially as 1,2,3...


avirkki/synergetr documentation built on May 18, 2019, 9:16 p.m.