Displaying 2 results from an estimated 2 matches for "porcac".
Did you mean:
corsac
2017 Mar 15
3
Crear una función
...no permite que el google me ayude...
n.reg.dep <- function(x, y) {
etiqueta <- str_replace(nombres[Variable == y, Descripcion], "[ ]", "")
tabla <- datos[, .N, by = .(etiqueta = A3a)] #
tabla <- tabla[, Porc := round(N/sum(N)*100,1)] # %
tabla[, PorcAc := cumsum(Porc)]
# Regiones
tabla.1 <- datos[, .N, by = .(etiqueta = x, Region)]
tabla.1[, Porc := round(N/sum(N)*100,1), by =.(Region)]
tabla.1 <- spread(tabla.1[, .(etiqueta, Region, Porc)], key =
Region, value = Porc)
tabla.reg <- left_join(t...
2017 Mar 15
4
Fwd: Crear una función
...ite que el google me ayude...
n.reg.dep <- function(x, y) {
??
etiqueta <- str_replace(nombres[Variable == y, Descripcion], "[ ]", "")
tabla <- datos[, .N, by = .(etiqueta =
?x
)] #
tabla <- tabla[, Porc := round(N/sum(N)*100,1)] # %
tabla[, PorcAc := cumsum(Porc)]
# Regiones
tabla.1 <- datos[, .N, by = .(etiqueta = x, Region)]
tabla.1[, Porc := round(N/sum(N)*100,1), by =.(Region)]
tabla.1 <- spread(tabla.1[, .(etiqueta, Region, Porc)], key = Region, value = Porc)
tabla.reg <- left_join...