getNthElement: Get Nth Element

Description Usage Arguments Examples

View source: R/hello.R

Description

Returns the nth element of a string split on a character

Usage

1
getNthElement(string, n, delim = "_")

Arguments

string

the string to split

n

which element of the split string to return

delim

character to split on, default is underscore

Examples

1

supermartha/marthaTools documentation built on July 26, 2020, 1:44 p.m.