validate_dates: Validate dates

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Function validates format of dates throws warning if a given value has not the required date format or cannot be converted to a valid date

Usage

1
validate_dates(..., .format = "%Y-%m-%d")

Arguments

...

a comma-separated list of presumable date values

.format

an ISO date fromat to be validated Default is '%Y-%m-%d'.

Value

A list, one element for each element passed to .... Elements NA when

Examples

1
2
3
4
5
6
## Not run: 
test_ <- validate_dates(1234, Sys.Date(), "2019-02-30")
test_
lapply(test_, class)

## End(Not run)

haukelicht/twscrape documentation built on Jan. 29, 2020, 3:23 p.m.