last_token: Last Token of Character Vector

Description Usage Arguments Value Examples

Description

Calls 'strsplit' and then returns the last token.

Usage

1

Arguments

x

a character vector to extract last token from

split

string or regex on which to do the split

...

further arguments to strsplit

Value

last token of the character vector

Examples

1
2
last_token("http://tb.plazi.org/GgServer/xml/uno", "/")
last_token(c("http://tb.plazi.org/GgServer/xml/dos", "http://tb.plazi.org/GgServer/xml/tres"), "/")

pdatascience/rdf4r documentation built on May 25, 2019, 11:34 p.m.