<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><span>Olá </span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Sou iniciante no R, preciso retirar de uma string um caractere <span style="font-weight: bold;">específico</span> que esteja <span style="font-weight: bold;">repetido,  </span>trocando estes por apenas <span style="font-weight: bold;">um</span>,</span></div><div style="color: rgb(0, 0, 0); font-size:
 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Ex: a = "23345556333388"     gostaria de retirar o 3 especificamente que estão repetidos, logo a string ficaria</span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>      a = "2345556388"         -  só altero onde o 3 aparece, os outros continuam como estão.</span></div><div style="color: rgb(0, 0, 0); font-size:
 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>outro exemplo</span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>      texto = "BOLLA  CARRO  LLATA  CASSINO "  
 aplicando somente para a letra L</span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>      texto = "BOLA CARRO LATA  CASSINO"</span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Alguém poderia me dar uma dica de qual função usar?</span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue',
 Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br></div><div></div><div> </div><div><span style="color: rgb(0, 0, 255); font-style: italic; font-weight: bold; font-family: 'times new roman', 'new york', times, serif;">Waldelene Moura</span><br style="color: rgb(0, 0, 255); font-style: italic; font-family: 'times new roman', 'new york', times, serif;"><span style="color: rgb(0, 0, 255); font-style: italic; font-family: 'times new roman', 'new york', times, serif;">Analista de Sistemas</span><br style="color: rgb(0, 0, 255); font-style: italic; font-family: 'times new roman', 'new york', times, serif;"><span style="color: rgb(0, 0, 255); font-style: italic; font-family: 'times new roman', 'new york', times, serif;">Universidade Federal do Maranhão - PROEN</span><br style="color: rgb(0, 0, 255); font-style: italic; font-family: 'times new roman', 'new york', times, serif;"></div><div
 style="font-family: 'times new roman', 'new york', times, serif; font-style: italic;"><span style="color: rgb(0, 0, 255);"> </span></div></div></body></html>