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"notasResolveu, mas é cansativo! Se alguém tiver algo melhor e puder compartilhar!gratoAndré
______________________________ _________________
R-br mailing list
R-br@listas.c3sl.ufpr.br
https://listas.inf.ufpr.br/ cgi-bin/mailman/listinfo/r-br
Leia o guia de postagem (http://www.leg.ufpr.br/r-br- guia) e forneça código mínimo reproduzível.