last_token: Last Token of Character Vector

Description Usage Arguments Value Examples

View source: R/utilities.R

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"), "/")

vsenderov/rdf4r documentation built on May 3, 2019, 4:02 p.m.