date_get_part1: Split a string based on a pattern and return the first...

View source: R/utils.R

date_get_part1R Documentation

Split a string based on a pattern and return the first element of the resulting vector.

Description

Split a string based on a pattern and return the first element of the resulting vector.

Usage

date_get_part1(x, sep)

Arguments

x

A <character> or <Date> value

sep

A <character> with the separator identified in 'x'

Value

A <character> with the first element of the vector returned by the strsplit() function.


cleanepi documentation built on April 4, 2025, 5:12 a.m.