Skip to content

Commit

Permalink
ensure that METs are not multiplied by 1000 in part 5
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentvanhees committed Jan 20, 2024
1 parent 91d1831 commit b4c53ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/g.part5_initialise_ts.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ g.part5_initialise_ts = function(IMP, M, params_247, params_general) {

# extract key variables from the mile-stone data: time, acceleration and elevation angle
# note that this is imputed ACCELERATION because we use this for describing behaviour:
scale = ifelse(test = grepl("^Brond|^Neishabouri|^ZC", params_general[["acc.metric"]]), yes = 1, no = 1000)
scale = ifelse(test = grepl("^Brond|^Neishabouri|^ZC|^ExtAct", params_general[["acc.metric"]]), yes = 1, no = 1000)
# if (length(which(names(IMP$metashort) == "anglez")) == 0 & verbose == TRUE) {
# cat("Warning: anglez not extracted. Please check that do.anglez == TRUE")
# }
Expand Down

0 comments on commit b4c53ff

Please sign in to comment.