Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

joshwlambert
Copy link
Member

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.

@joshwlambert joshwlambert merged commit 5d7e4ec into main Feb 8, 2024
6 checks passed
@joshwlambert joshwlambert deleted the no_row_nms branch February 8, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant