removeEarlyDates: Remove dates before a specified year
Description
Dates before a specified year are set to NA. This is often used for dates
formed from malformed character representations such as a date in
%m-%d-%Y format being read by %Y-%m-%d format
Usage
removeEarlyDates(dates, firstYear)
Value
A vector of dates with every date before the year indicated by the
numeric value of firstYear set to NA. Dates in
firstYear itself are kept.
Arguments
dates
vector of dates
firstYear
integer value of first (earliest) year in the allowed
date range.