fakeDates: assume Jan 1 if no month or day given

Description Usage Arguments Value

View source: R/utils.R

Description

We still require two year columns, year1 and year2, at a minimum. If this function is called, and if month and day columns are missing we add these columns, with values of 1. If date columns are given, then these must be either in an unambiguous character format ("YYYY-MM-DD", e.g. "2016-05-30" is unambiguous). Date columns will override the presence of other year, month, day columns.

Usage

1

Arguments

X

a data.frame with at least columns year1 and year2.

Value

X the same data.frame, possibly with columns for year, month, or day added.


DDM documentation built on May 2, 2019, 6:16 a.m.

Related to fakeDates in DDM...