Learn R Programming

DAVIDQuery (version 1.32.0)

findInBrackets: Extract the substring(s) between the left and right brackets...

Description

Extract the substring(s) between the left and right brackets where left is the last occurence of the left bracket before the first occurence of the right bracket

Usage

findInBrackets(string, left, right, includeLeft=FALSE, includeRight=FALSE)

Arguments

string
character string to extract substring from
left
left bracket (character string)
right
right bracket (character string)
includeLeft
if TRUE include left bracket into the result string. Default is FALSE
includeRight
if TRUE include right bracket into the result string. Default is FALSE

Value