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 string of interest

sep

A separator in the string of interest

Value

A string with the first element of the vector returned by the strsplit() function.