Skip to content

Conversation

@willandru
Copy link
Collaborator

No description provided.

@willandru willandru self-assigned this Feb 4, 2025
@willandru willandru linked an issue Feb 4, 2025 that may be closed by this pull request
#'
#' @export
get_historic_epi_times <- function(tabla) {
data <- tabla
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please avoid using data since it is a reserved word in R and in other packages.

#' @param dataset Un dataset con nombres de columna a limpiar.
#' @return Un dataset con nombres de columna estandarizados.
#' @export
clean_colnames_spaces <- function(df) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename param df to dataset, according to the function documentation

Comment on lines 190 to 240
janitor::clean_names() %>%
fill_down_column("anos") %>%
fill_down_column("ano") %>%
fill_down_column("periodo_epidemiologico")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check if it is possible to include the column names in the configuration file.

R/import_data.R Outdated
get_selected_table <- function(list_of_tables, indicator) {
# Verificar que 'tables' es una lista
if (!is.list(tables)) {
if (!is.list(list_of_tables)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid use words like of

Comment on lines 307 to 320
plot_historic_epi_time <- function(df, bars_df, lines_df, periodo_epi ) {
plot_historic_epi_time <- function(dataset_epiTime, periodo_epi ) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace dataset_epiTime with dataset_epi_time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Complete and Improve epi time functions

3 participants