checkDate {hpiR} | R Documentation |
Validate the date argument
Description
Internal function to validate (or convert) the provided date field
Usage
checkDate(x_date, name)
Arguments
x_date |
Date string or vector |
name |
Name of argument to return in error/warning message |
Value
Adjusted date field
Examples
# Load Data
data(ex_sales)
# Check date
date_checked <- checkDate(x_date = ex_sales$sale_date,
name = 'sale date')
[Package hpiR version 0.3.2 Index]