Skip to content
Snippets Groups Projects
dateFormatCheck.Rd 462 B
Newer Older
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{dateFormatCheck}
\alias{dateFormatCheck}
Laura A DeCicco's avatar
Laura A DeCicco committed
\title{Check date format}
Laura A DeCicco's avatar
Laura A DeCicco committed
dateFormatCheck(date)
Laura A DeCicco's avatar
Laura A DeCicco committed
\item{date}{string}
Laura A DeCicco's avatar
Laura A DeCicco committed
condition logical if TRUE,
Laura A DeCicco's avatar
Laura A DeCicco committed
Checks to see if format is YYYY-MM-DD. Also performs a few other date checks.
}
\examples{
date <- '1985-01-01'
dateFormatCheck(date)
Laura A DeCicco's avatar
Laura A DeCicco committed
dateWrong <- '1999/1/7'
dateFormatCheck(dateWrong)
Laura A DeCicco's avatar
Laura A DeCicco committed
\keyword{WRTDS}