split a string and extract the nth string

strsplit2(x, sep = " ", nth = 1)

Arguments

x

The string to split

sep

The separated character

nth

The nth string to extract

Value

a new string