Skip to content

Commit

Permalink
feat(plot_tabla_incidencia_sex): renamed return paramer to tabla_sex …
Browse files Browse the repository at this point in the history
…and apply str_to_title to nombre_evento column

Ref: #108
  • Loading branch information
GeraldineGomez committed Apr 24, 2024
1 parent 083cd37 commit 667c290
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,8 @@ plot_tabla_incidencia_sex <- function(data_agrupada,
"caption_sex_incidence")
data_agrupada[[col_sex]] <-
stringr::str_to_title(data_agrupada[[col_sex]])
data_agrupada[["nombre_evento"]] <-
stringr::str_to_title(data_agrupada[["nombre_evento"]])
data_agrupada <- data_agrupada[order(data_agrupada$incidencia,
decreasing = TRUE), ]
tabla_sex <- knitr::kable(data_agrupada[, c("cod_eve",
Expand All @@ -1430,5 +1432,5 @@ plot_tabla_incidencia_sex <- function(data_agrupada,
kableExtra::row_spec(0, color = "white", background = "#2274BB") %>%
kableExtra::kable_styling(full_width = FALSE,
latex_options = "HOLD_position")
return(tabla_tipos)
return(tabla_sex)
}

0 comments on commit 667c290

Please sign in to comment.