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

Error subsetting data when only 1 acceleration metric calculated #1265

Open
jhmigueles opened this issue Feb 13, 2025 · 0 comments · May be fixed by #1266
Open

Error subsetting data when only 1 acceleration metric calculated #1265

jhmigueles opened this issue Feb 13, 2025 · 0 comments · May be fixed by #1266
Assignees

Comments

@jhmigueles
Copy link
Collaborator

Bug identified when investigating this question from the Google group: https://groups.google.com/u/1/g/RpackageGGIR/c/u0YSqdv3AuU

When reading actiwatch_csv data, only 1 acceleration metric is added to part 1 milestone data. In part 2, g.analyse.perday subsets the time series into day chunks, but line 286 in that function tries to get the length of vari using nrow. Since vari is coerced to numeric (because there is only one acceleration metric in the data frame), then nrow function doesn't work.

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 a pull request may close this issue.

1 participant