date_get_part1 {cleanepi}R 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.


[Package cleanepi version 1.1.0 Index]