extract_in_parentheses: Extract information inside the parentheses from a character...

View source: R/extract_in_parentheses.R

extract_in_parenthesesR Documentation

Extract information inside the parentheses from a character string.

Description

Extract information inside the parentheses from a character string.

Usage

extract_in_parentheses(x)

Arguments

x

Character string

Value

Part(s) of the input character string that was constrained in the parentheses.

References

This function is based on the answer from https://stackoverflow.com/questions/8613237/extract-info-inside-all-parenthesis-in-r

Examples

extract_in_parentheses("abc (11%) xyz")
extract_in_parentheses("Lorem ipsum (dolor sit amet), consectetur adipiscing elit, (sed do eiusmod) tempor incididunt ut (labore et dolore) magna aliqua")


vmikk/metagMisc documentation built on June 20, 2024, 7:20 a.m.