I would like to replace NA
with the contents of another column. I have the following data:
NOME TIPO VALOR
ABC INTERNACAO 10
ADD 20
AFF CONSULTA 30
DDD EXAME 40
RTF 50
DRGG EXAME 60
How would you replace NA
with the contents of the next column? Example: The NA
of the line ADD
(column TIPO
) would be replaced by the number 20. And in the line RTF
(column TIPO
) would be replaced by 50. Thank you