[R-br] Formatar base de dados

Andre Oliveira andreolsouza em yahoo.com.br
Domingo Abril 1 11:07:14 -03 2018


bom dia, tenho vetor muito grande e preciso fazer como fiz manualmente neste CMR.
notas =c(2, 3, 20, 4, 8, 9, 2, 20, 4, 4)notas[notas == 2 ] <- "A"notas[notas == 3 ] <- "B"notas[notas == 20 ] <- "C"notas[notas == 4 ] <- "D"notas[notas == 8 ] <- "E"notas[notas == 9 ] <- "F"notas
Resolveu, mas é cansativo! Se alguém tiver algo melhor e puder compartilhar!
gratoAndré


-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listas.inf.ufpr.br/pipermail/r-br/attachments/20180401/268d94bd/attachment.html>


Mais detalhes sobre a lista de discussão R-br