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.fakeDates(X)
data.frame
with at least columns year1
and year2
.data.frame
, possibly with columns for year, month, or day added.