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

Thin doesn't work properly with numerical ids #111

Open
finlaycampbell opened this issue Jun 25, 2019 · 0 comments

Comments

@finlaycampbell
Copy link
Collaborator

commented Jun 25, 2019

library(epicontacts)
epi_c <- make_epicontacts(data.frame(id = 20:40),
                          data.frame(from = 21:30,
                                     to = 31:40))
thin(epi_c, "contacts")$contacts
thin(epi_c, "linelist")$linelist

The thin function is calling the square bracket operator using case ids - if these are numerical, it extracts the wrong rows from the linelist/contacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.