trimuri: Split a uri around the "?" or other character. For example,...

View source: R/misc.R

trimuriR Documentation

Split a uri around the "?" or other character. For example, trimuri(http://www.uri.org?where=foo) returns http://www.uri.org.

Description

Split a uri around the "?" or other character. For example, trimuri(http://www.uri.org?where=foo) returns http://www.uri.org.

Usage

trimuri(uri, around = "?", fixed = TRUE, index = 1)

Arguments

uri

character, the uri to split

around

character,the character to split around

fixed

see strsplit

index

numeric, by default only the leading portion of the input is returned

Value

character of the input preceding the 'around' character


BigelowLab/genologicsr documentation built on June 7, 2024, 3:15 a.m.