Displaying 2 results from an estimated 2 matches for "depdendencia".
Did you mean:
dependencia
2017 Mar 15
3
Crear una función
...# 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(tabla, tabla.1)
# Depdendencia
tabla.1 <- datos[, .N, by = .(etiqueta = x, Dependencia = B2a)]
tabla.1[, Porc := round(N/sum(N)*100,1), by =.(Dependencia)] # %
por Dependencia
tabla.1 <- na.omit(tabla.1)
tabla.1 <- spread(tabla.1[, .(etiqueta, Dependencia, Porc)], key
= Dependenci...
2017 Mar 15
4
Fwd: Crear una función
...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(tabla, tabla.1)
# Depdendencia
tabla.1 <- datos[, .N, by = .(etiqueta = x, Dependencia = B2a)]
tabla.1[, Porc := round(N/sum(N)*100,1), by =.(Dependencia)] # % por Dependencia
tabla.1 <- na.omit(tabla.1)
tabla.1 <- spread(tabla.1[, .(etiqueta, Dependencia, Porc)], key = Dependenc...