Removes everything between (and including) round brackets. We negating matches with I(), since this is R's interaction operator.

remove_round_brackets(string)

Arguments

string

A character string

Details

(?<!I) - A negative lookbehind for I