Dear all Statist,
I have a database which look like that :
muni_id muni
91530 PUERTO ALEGRÍA (Cor. Departamental)
91263 EL ENCANTO (Cor. Departamental)
91536 PUERTO ARICA (Cor. Departamental)
91798 TARAPACÁ (Cor. Departamental)
I'm trying to delete the expression in the bracket (with the brackets too) in the variable "muni" by using the command " replace muni = regexr(muni,"\(.+?\)","") " but it doesn't work at all.
Do you have some clues to deal with this problem ?
Thanks to all,
I have a database which look like that :
muni_id muni
91530 PUERTO ALEGRÍA (Cor. Departamental)
91263 EL ENCANTO (Cor. Departamental)
91536 PUERTO ARICA (Cor. Departamental)
91798 TARAPACÁ (Cor. Departamental)
I'm trying to delete the expression in the bracket (with the brackets too) in the variable "muni" by using the command " replace muni = regexr(muni,"\(.+?\)","") " but it doesn't work at all.
Do you have some clues to deal with this problem ?
Thanks to all,

Comment