This PR addresses a comment from the package review PR #73 on the definition and later use of the infected column of the line list data. It is used at several points in the simulation in conditional statements such as .data$infected == "infected" which could produce erroneous results if the character strings in the columns does not exactly match "infected". A comment has been added to .sim_network_bp() to remind developers that if the definition of the infections or contacts (infected <- ifelse(test = infected, yes = "infected", no = "contact")) is changed to also update the conditional statements.
This PR addresses a comment from the package review PR #73 on the definition and later use of the
infected
column of the line list data. It is used at several points in the simulation in conditional statements such as.data$infected == "infected"
which could produce erroneous results if the character strings in the columns does not exactly match"infected"
. A comment has been added to.sim_network_bp()
to remind developers that if the definition of the infections or contacts (infected <- ifelse(test = infected, yes = "infected", no = "contact")
) is changed to also update the conditional statements.