get_yyyymmdd: Create a date

Description Usage Arguments Details

Description

Create a date object (or, alternatively, a character) given date parameters.

Usage

1
2
get_yyyymmdd(yyyy = NULL, mm = NULL, dd, default_day = TRUE,
  as_date = TRUE, sep = "-")

Arguments

yyyy

numeric. Year.

mm

numeric. Month.

dd

numeric. Day.

default_day

logical. Indicates whether to set a default day. Used ONLY if dd is missing.

as_date

logical. Indiciates whether to convert the return value to a date.

sep

character. Used ONLY in the case that as_date = FALSE.

Details

This function was originally used for some work-related project(s) (for outages).


aelhabr/temisc documentation built on May 28, 2019, 3:55 p.m.