Skip to content

Commit 0049bd9

Browse files
committed
update medidas
1 parent b7cef00 commit 0049bd9

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

R/globals.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ utils::globalVariables(c("replica","is_conflict","observed",
2222
"data_combine", "digits", "is_conflict_dis_rep",
2323
"edad_jep", "edad_jep_imputed", "muni_code_hecho",
2424
"proportions_observed", "etnia_imputed", "etnia2",
25-
"quinquenio", "periodo_pres"))
25+
"quinquenio", "periodo_pres", "in_24"))

R/sysdata.rda

110 Bytes
Binary file not shown.

R/utils_authentication.R

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,19 @@ medidas <- function(replicate_path) {
132132
"2007" = "farc en 2007")) %>%
133133
dplyr::select(variable, valor)
134134

135+
N_rows <- replicate_data %>%
136+
dplyr::summarise(valor = dplyr::n()) %>%
137+
dplyr::mutate(variable = "N rows") %>%
138+
dplyr::select(variable, valor)
139+
140+
N_in_24 <- replicate_data %>%
141+
dplyr::summarise(valor = sum(in_24)) %>%
142+
dplyr::mutate(variable = "N in_24") %>%
143+
dplyr::select(variable, valor)
144+
135145
comparar <- dplyr::bind_rows(dpto, etnia, edad, year_2002_2007, year_1990_1994,
136146
sexo, perp, w_minor, caq_89_93, may, paras_bog,
137-
paras_2016, mestizo_2000, farc_2007)
147+
paras_2016, mestizo_2000, farc_2007, N_rows, N_in_24)
138148

139149
replicate <- rep(replicate, each = nrow(comparar)) %>%
140150
as.data.frame()

0 commit comments

Comments
 (0)