diff --git a/R/active_percent.R b/R/active_percent.R index f7fd864b..453664c6 100644 --- a/R/active_percent.R +++ b/R/active_percent.R @@ -5,14 +5,14 @@ #' #' @usage #' active_percent(data, dt0 = NULL, tz = "", -#' range_type = "automatic", ndays = 14, end_date = NULL) +#' range_type = "automatic", ndays = 14, consistent_end_date = NULL) #' #' @inheritParams plot_lasagna #' #' @param tz \strong{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. #' @param range_type \strong{range_type = "automatic".} A character string indicating the type of range ('automatic' or 'manual'). #' @param ndays \strong{ndays = 14.} An integer specifying the number of days to consider in the calculation. -#' @param consistent_end_date \strong{end_date = NULL.} A Date object or NULL indicating a period end date to be used for every subject. Leaving this value NULL will result in the end date being unique to each subject. +#' @param consistent_end_date \strong{consistent_end_date = NULL.} A Date object or NULL indicating a period end date to be used for every subject. Leaving this value NULL will result in the end date being unique to each subject. #' #' @details #'The function `active_percent` produces a tibble object with values equal to the diff --git a/man/active_percent.Rd b/man/active_percent.Rd index 6d1dfd61..f3982f08 100644 --- a/man/active_percent.Rd +++ b/man/active_percent.Rd @@ -5,7 +5,7 @@ \title{Calculate percentage of time CGM was active} \usage{ active_percent(data, dt0 = NULL, tz = "", -range_type = "automatic", ndays = 14, end_date = NULL) +range_type = "automatic", ndays = 14, consistent_end_date = NULL) } \arguments{ \item{data}{DataFrame object with column names "id", "time", and "gl".} @@ -18,7 +18,7 @@ range_type = "automatic", ndays = 14, end_date = NULL) \item{ndays}{\strong{ndays = 14.} An integer specifying the number of days to consider in the calculation.} -\item{end_date}{\strong{end_date = NULL.} A Date object or NULL indicating the end date for the calculation.} +\item{consistent_end_date}{\strong{consistent_end_date = NULL.} A Date object or NULL indicating a period end date to be used for every subject. Leaving this value NULL will result in the end date being unique to each subject.} } \value{ A tibble object with five columns: subject id,