Skip to contents

This function appends a new entry to the article, outbreak, model, or parameter tables.

Usage

append_new_entry_to_table(pathogen, table, new_row, validate = TRUE)

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(), or create_new_parameter_entry().

validate

check if the new row to be added passes minimum criteria (either TRUE or FALSE)

Value

table with new entry