dtt_complete: Complete

Description Usage Arguments Value Examples

View source: R/complete.R

Description

Completes a Date or POSIXct vector.

Usage

1
2
dtt_complete(x, from = min(x), to = max(x), floor = TRUE,
  unique = TRUE, sort = TRUE, units = dtt_units(x), ...)

Arguments

x

A Date or POSIXct vector.

from

A Date or POSIXct scalar of the start date.

to

A Date or POSIXct scalar of the to date.

floor

A flag indicating whether to floor the values.

unique

A flag indicating whether to return distinct values.

sort

A flag indicating whether the returned vector must be sorted.

units

A string of the units.

...

Unused.

Value

The complete and possibly unique and sorted floored vector.

Examples

1

poissonconsulting/dttr documentation built on Feb. 20, 2021, 12:18 a.m.