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
It seems as though the checks for template are not correct since it allows numeric matrices:
library(adept)
library(adeptdata)
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
Getting some data from adeptdata to show what happens
xyz=adeptdata::acc_walking_IUxyz=xyz %>%
filter(loc_id=="left_wrist") %>%
filter(subj_id==subj_id[1])
xyz=xyz %>%
select(x, y, z)
It seems as though the checks for
template
are not correct since it allows numeric matrices:Getting some data from
adeptdata
to show what happensGrabbing a Template from Adept Data
Wee see that it is indeed a matrix
Here are the conditions from
segmentPattern
:adept/R/segmentPattern.R
Line 242 in d7165ad
TRUE
, but it shouldn't:If we change
is.atomic
tois.vector
, it gives the correct failsRunning with the matrix
Running with a list of vectors
Created on 2023-08-09 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: