Learn R Programming

cleanepi (version 1.1.0)

date_get_part1: 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)

Value

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

Arguments

x

A <character> or <Date> value

sep

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