fakeDates {DDM}R Documentation

assume Jan 1 if no month or day given

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

fakeDates(X)

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.


[Package DDM version 1.0-0 Index]