
1 Abr
2018
1 Abr
'18
14:07
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é