format_origin_vec: format_origin_vec

Description Usage Arguments Examples

View source: R/format-vec.R

Description

format origin period vector

Usage

1
format_origin_vec(x, eval, sep = " to ")

Arguments

x

a vector of dates. Each date indicates the first day of the origin period

eval

Most recent evaluation time. This will be used as the second date in the last element in the vector x

sep

character string to place between dates

Examples

1
2
3
4
x <- c("2014-01-01", "2015-01-01", "2016-01-01")

format_origin_vec(x, eval = "2015-03-31")
format_origin_vec(x, eval = "2015-03-31", sep = " - ")

merlinoa/summaryrow documentation built on May 22, 2019, 6:53 p.m.