Skip to content

Commit 84b72f1

Browse files
committed
improve comments and examples
1 parent 35bbdae commit 84b72f1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

R/mark_intensity.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ mark_intensity <- function(data,
150150
df$bout <- cumsum(c(1, as.numeric(diff(df$intensity_category_num))!= 0))
151151

152152

153-
# Setting count-based data and related data to NA for abnormal metric if required
153+
# Setting count-based variables and related variables to NA when Axis 1 data are abnormal
154+
# Detected abnormal epochs will considered as "nonwear"
154155

155156
if (ehcv != "none" & is.numeric(ehcv) & ehcv >= 0) {
156157

R/recap_by_day.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@
105105
#' vpa_cutpoint = 6167,
106106
#' age = 32,
107107
#' weight = 67,
108-
#' sex = "male"
108+
#' sex = "male",
109+
#' ehcv = 15000
109110
#' )
110111
#' recap_by_day(
111112
#' data = mydata_with_intensity_marks,
@@ -117,7 +118,8 @@
117118
#' valid_wear_time_end = "22:00:00",
118119
#' start_first_bin = 0,
119120
#' start_last_bin = 10000,
120-
#' bin_width = 500
121+
#' bin_width = 500,
122+
#' ehcv = 15000
121123
#' )
122124
#' }
123125
#'

0 commit comments

Comments
 (0)