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

Participant 1992 remains in "demographics_race" table #10

Open
jwe4ec opened this issue Mar 4, 2022 · 0 comments
Open

Participant 1992 remains in "demographics_race" table #10

jwe4ec opened this issue Mar 4, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jwe4ec
Copy link
Collaborator

jwe4ec commented Mar 4, 2022

Participant 1992 remains in "demographics_race" table because "system_date_time_earliest" in that table is NA. Thus, the exclusion in line 1396 of "4_clean_data.R" does not apply to that table. Check that 1992 is excluded from all relevant tables.

for (i in 1:length(dat)) {
  if ("system_date_time_earliest" %in% names(dat[[i]]) &
      "participant_id" %in% names(dat[[i]])) {
    dat[[i]] <- dat[[i]][!(dat[[i]][, "participant_id"] == 1992 &
                             (!is.na(dat[[i]][, "system_date_time_earliest"]) &
                             dat[[i]][, "system_date_time_earliest"] >= 
                               "2020-04-07 00:00 EDT")), ]
  } else {
    dat[[i]] <- dat[[i]]
  }
}
@jwe4ec jwe4ec self-assigned this Mar 4, 2022
@jwe4ec jwe4ec added the bug Something isn't working label Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant