Match ISO 8601 date and time classes.
iso_date(lo, hi, char_class = TRUE)iso_time(lo, hi, char_class = TRUE)iso_datetime(lo, hi, char_class = TRUE)
iso_time(lo, hi, char_class = TRUE)
iso_datetime(lo, hi, char_class = TRUE)
A character vector representing part or all of a regular expression.
A non-negative integer. Minimum number of repeats, when grouped.
positive integer. Maximum number of repeats, when grouped.
TRUE or FALSE. Should the values be wrapped into a character class?
TRUE
FALSE
http://www.iso.org/iso/iso8601
iso_date() iso_time() iso_datetime() # With repetition iso_date(3, 6) iso_time(1, Inf) iso_datetime(0, Inf) # Without a class wrapper iso_date(char_class = FALSE)
Run the code above in your browser using DataCamp Workspace