powered by
Internal function to validate (or convert) the provided date field
checkDate(x_date, name)
Date string or vector
Name of argument to return in error/warning message
Adjusted date field
# NOT RUN { # Load Data data(ex_sales) # Check date date_checked <- checkDate(x_date = ex_sales$sale_date, name = 'sale date') # }
Run the code above in your browser using DataLab