This PR removes the row names before returning line list and contact table data from sim_linelist(), sim_contacts() and sim_outbreak(), which ensures the row.names are 1:nrow. Prior to this the row names would be a non-consecutive series of numbers due to filtering rows that are not infected, in the case of line list data, or not start at 1, in the case of contacts table that did not include the index case.
This PR removes the row names before returning line list and contact table data from
sim_linelist()
,sim_contacts()
andsim_outbreak()
, which ensures therow.names
are1:nrow
. Prior to this the row names would be a non-consecutive series of numbers due to filtering rows that are not infected, in the case of line list data, or not start at 1, in the case of contacts table that did not include the index case.