Hola.
Yo lo hiciera con la función cut {base} de la siguiente forma:

x <- data.frame(b=c(0, 0, 0.001, 0.374, 0.026, 1.000))
x$c <- cut(x$b,c(-1,0.001,0.01,0.05,1),c("***","**","*",""))
x

Saludos.

        [[alternative HTML version deleted]]

_______________________________________________
R-help-es mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-help-es

Responder a