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

Coping with non-clustered cases in contacts dataframe #121

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

isaac-florence
Copy link

Because cases in the linelist who do not appear in the contacts dataframe with from as NA do not have their node attributes displayed, just their ID, it is necessary to include them in the contacts. However, {igraph} in the get_clusters function turns NA to 'NA' and so falsely considers non-connected cases as one cluster.

Although this does not change default behaviour it does allow for users to have a linelist returned which does not assign clusters to non-clustered cases.

The minor fix was required due to an issue in copying an epicontacts object but has now been tested and works as expected

Isaac.Florence added 3 commits December 28, 2020 10:35
No change to default behaviour. Fixes issue with igraph turning NA to 'NA' and assigning non-clustered cases to same cluster (only issue where "from" col in contacts is NA)
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.

None yet

1 participant