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

Update fitbitsleeplogs summaries #8

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

pranavanba
Copy link
Collaborator

Major Changes

  1. In scripts/process-data/fitbitsleeplogs.R, order LogId by StartDate before calculating NumAwakenings
    • Before we exclude the first and/or last records for each sleep episode (LogId) (when the first and/or last record for a LogId has Value==wake or Value==awake), we need to first order the records for each LogId according to StartDate, since the StartDate values within each LogId are not always ordered

Minor Changes

  1. Explicitly set .groups = "keep" in summarise() to enforce that previously set groupings are used

@pranavanba pranavanba self-assigned this Mar 14, 2024
@pranavanba pranavanba merged commit 6d3771f into Sage-Bionetworks:main Mar 14, 2024
2 checks passed
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