library(magrittr)
file <- system.file("extdata", "acc.agd", package = "activAnalyzer")
mydata <- prepare_dataset(data = file)
mydata_with_wear_marks <- mydata %>% mark_wear_time() %>%
dplyr::filter(days == 2 & time >= hms::as_hms("14:00:00") & time <= hms::as_hms("15:00:00"))
mets <- compute_mets(
data = mydata_with_wear_marks,
equation = "Sasaki et al. (2011) [Adults]",
weight = 67,
sex = "male"
)
mets
Run the code above in your browser using DataLab