epiverse-trace / simulist

An R package for simulating line lists
https://epiverse-trace.github.io/simulist/
Other
5 stars 1 forks source link

Set `<data.frame>` `row.names` to default before returning #63

Closed joshwlambert closed 9 months ago

joshwlambert commented 9 months ago

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.