Extraction of characters and symbols using R

I have a column with these kind of values

                    id     count  total SEXO EDAD IDENTIF_AFILIADO
 1:  952815090_12_06_Q643     4 133.34    M   39        952815090
 2:   952443257_10_17_C64     9  64.32    F    5        952443257
 3:   931131767_9_10_C716     2  21.88    M    1        931131767
 4:   931131767_8_13_C716    15 173.70    M    1        931131767
 5:   931131767_1_09_C716     1  10.94    M    0        931131767

.....

The id column has a code after the third " _ ". For instance, the first row has "952815090_12_06_Q643"

I need to extrac the code Q643.

More specifically the group of characters after the third "_" in every row. How to perform it using R?



from Recent Questions - Stack Overflow https://ift.tt/3dQWlSd
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Network Error and Timeout on Authorize.net JS

Spring Elasticsearch Operations