Skip to content

Commit

Permalink
feat(agrupar_dpto): added cod_eve column to data.frame result
Browse files Browse the repository at this point in the history
Ref: #108
  • Loading branch information
GeraldineGomez committed Apr 19, 2024
1 parent 8922782 commit cb51d98
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Binary file not shown.
Binary file not shown.
9 changes: 5 additions & 4 deletions R/checking_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -582,12 +582,13 @@ agrupar_dpto <- function(data_event,
"El parametro porcentaje debe ser un booleano (TRUE o FALSE)" =
is.logical(porcentaje))
data_event_cods_dpto <- data_event
nomb_cols <- obtener_tip_ocurren_geo(data_event_cods_dpto$cod_eve[1])
nomb_cols <- append("cod_eve",
obtener_tip_ocurren_geo(data_event_cods_dpto$cod_eve[1]))
data_event_cods_dpto <- agrupar_cols_casos(data_event_cods_dpto,
nomb_cols = nomb_cols[1:2],
nomb_cols = nomb_cols[1:3],
porcentaje = porcentaje)
data_event_cods_dpto[[nomb_cols[1]]] <-
as.character(data_event_cods_dpto[[nomb_cols[1]]])
data_event_cods_dpto[[nomb_cols[2]]] <-
as.character(data_event_cods_dpto[[nomb_cols[2]]])
return(data_event_cods_dpto)
}

Expand Down
Binary file added inst/extdata/incidencia.xlsx
Binary file not shown.
Binary file added inst/extdata/incidencia_event.xlsx
Binary file not shown.

0 comments on commit cb51d98

Please sign in to comment.