-
Notifications
You must be signed in to change notification settings - Fork 0
Feat: Add function for Epidemiological time plot" #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…nction was divided into subfunctions
| #' | ||
| #' @export | ||
| get_historic_epi_times <- function(tabla) { | ||
| data <- tabla |
There was a problem hiding this comment.
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.
R/cleaning_data.R
Outdated
| #' @param dataset Un dataset con nombres de columna a limpiar. | ||
| #' @return Un dataset con nombres de columna estandarizados. | ||
| #' @export | ||
| clean_colnames_spaces <- function(df) { |
There was a problem hiding this comment.
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
R/cleaning_data.R
Outdated
| janitor::clean_names() %>% | ||
| fill_down_column("anos") %>% | ||
| fill_down_column("ano") %>% | ||
| fill_down_column("periodo_epidemiologico") |
There was a problem hiding this comment.
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)) { |
There was a problem hiding this comment.
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
R/plotting_data.R
Outdated
| plot_historic_epi_time <- function(df, bars_df, lines_df, periodo_epi ) { | ||
| plot_historic_epi_time <- function(dataset_epiTime, periodo_epi ) { |
There was a problem hiding this comment.
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
… also cleaned up the syntaxis of the code in the skeleton.rmd file .
… also cleaned up the syntaxis of the code in the skeleton.rmd file .
No description provided.