months_abb_regex: Regex for months' abbreviations

View source: R/parse_dttm_fmt.R

months_abb_regexR Documentation

Regex for months' abbreviations

Description

months_abb_regex() generates a regex that matches month abbreviations. For finer control, the case can be specified with parameter case.

Usage

months_abb_regex(x = month.abb, case = c("any", "upper", "lower", "title"))

Arguments

x

A character vector of three-letter month abbreviations. Default is month.abb.

case

A string scalar: "any", if month abbreviations are to be matched in any case; "upper", to match uppercase abbreviations; "lower", to match lowercase; and, "title" to match title case.

Value

A regex as a string.


sdtm.oak documentation built on April 3, 2025, 9:37 p.m.