Append new entry to article, outbreak, model, or parameter table
Source:R/append_new_entry_to_table.R
append_new_entry_to_table.RdThis function appends a new entry to the article, outbreak, model, or parameter tables.
Arguments
- pathogen
name of pathogen. Must be one of the priority pathogens You can get a list of the priority pathogens currently included in the package by calling the function
priority_pathogens.- table
the table to be loaded. Must be one of "article", "parameter", "outbreak", or "model"
- new_row
the new row of data to be added to the table, this can be generated using the utility functions
create_new_article_entry(),create_new_model_entry(),create_new_outbreak_entry(), orcreate_new_parameter_entry().- validate
check if the new row to be added passes minimum criteria (either TRUE or FALSE)