Skip to content

Commit

Permalink
feat: added cod_eve and year columns to standardize the distribution …
Browse files Browse the repository at this point in the history
…results

Ref: #108
  • Loading branch information
GeraldineGomez committed Apr 23, 2024
1 parent b190580 commit ee27b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/checking_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ agrupar_cols_casos <- function(data_event,
(!is.character(nomb_cols) && is.array(nomb_cols)),
"El parametro porcentaje debe ser un booleano (TRUE o FALSE)" =
is.logical(porcentaje))
nomb_cols <- append(nomb_cols, "nombre_evento")
nomb_cols <- append(nomb_cols, c("cod_eve", "nombre_evento", "ano"))
data_event_agrupada <- data_event %>%
dplyr::group_by_at(nomb_cols) %>%
dplyr::summarise(casos = dplyr::n(), .groups = "drop")
Expand Down

0 comments on commit ee27b2d

Please sign in to comment.