Skip to contents

Is it a Month-Year value?

Usage

is_month_year(x)

Arguments

x

A character vector.

Value

Logical vector; TRUE for Month YYYY or Month, YYYY.

Examples

is_month_year(c("February 1987", "August, 2005", NA))
#> [1] TRUE TRUE   NA