Skip to contents

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.