You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a reprex of the issues that are occurring due to specific storage types that seems to be a "bug"
library(agcounts)
library(read.gt3x)
library(actigraph.sleepr)
library(curl)
#> Using libcurl 8.4.0 with LibreSSL/3.3.6
library(dplyr)
#> #> Attaching package: 'dplyr'#> The following objects are masked from 'package:stats':#> #> filter, lag#> The following objects are masked from 'package:base':#> #> intersect, setdiff, setequal, union
# needed for `actigraph.sleepr`ac60=ac60 %>%
rename(timestamp=time)
choi_nonwear=actigraph.sleepr::apply_choi(ac60)
#> Error: Missing timestamps. Epochs should be evenly spaced from first(timestamp) to last(timestamp).
We dig a bit and see that has_missing_epochs is coming up TRUE, but this seems to be a bug
# error happens at actigraph.sleepr:::check_no_missing_timestamps
has_missing_epochs(ac60)
#> [1] TRUE
Taking the code from has_missing_epochs_ and running it shows that it fails on identical:
Here is a reprex of the issues that are occurring due to specific storage types that seems to be a "bug"
Downloading and reading in the data
Here we are using last observation carried forward to match idle sleep mode
Filling in the data
Getting activity counts
Error
We dig a bit and see that
has_missing_epochs
is coming upTRUE
, but this seems to be a bugTaking the code from
has_missing_epochs_
and running it shows that it fails onidentical
:But if we use
all.equal
we see that this returnsTRUE
And if we try
==
equality we see aTRUE
There are no different attributes and conversion to
numeric
we get:We see the issue is with their type, which seems relatively minor and a byproduct
And this discrepancy is potentially coming from the
epoch_len
, but definitely comes from thedplyr::first
anddplyr::last
:Created on 2024-07-15 with reprex v2.1.0
Session info
The text was updated successfully, but these errors were encountered: