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
Copy file name to clipboardExpand all lines: R/calculate_RHR.R
+19-7Lines changed: 19 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,14 @@
1
1
#' Calculate resting heart rate
2
2
3
3
#' @description
4
-
#' Computes the resting heart rate (RHR) according to the mean heart rate
4
+
#' Computes the resting heart rate (RHR) according to the mean/min heart rate
5
5
#' value between 3am to 7am. See reference for details on computing RHR
6
6
7
7
#' @usage
8
-
#' calculate_RHR(data, tz)
8
+
#' calculate_RHR(data, method, tz)
9
9
10
10
#' @param data A DataFrame object with column names "id", "time", "hr".
11
+
#' @param method \strong{Default: "mean".} Method for calculating RHR. Must be either "mean" for average or "min" for minimum HR during 3am-7am
11
12
#' @param tz A character string specifying the time zone to be used. System-specific (see \code{\link{as.POSIXct}}), but " " is the current time zone, and "GMT" is UTC (Universal Time, Coordinated). Invalid values are most commonly treated as UTC, on some platforms with a warning
0 commit comments