From 3e3b1fe186dd17f1df315351f04e1b379074a63f Mon Sep 17 00:00:00 2001 From: Adam Black Date: Wed, 6 Sep 2023 15:04:56 -0400 Subject: [PATCH] update docs --- man/eventStarts.Rd | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/man/eventStarts.Rd b/man/eventStarts.Rd index 06cee7f5..a118fbff 100644 --- a/man/eventStarts.Rd +++ b/man/eventStarts.Rd @@ -2,17 +2,7 @@ % Please edit documentation in R/window.R \name{eventStarts} \alias{eventStarts} -\title{#' A function to offset the number of days relative to index -#' @param days a number specifying the number of days to offset from index where -#' an event may be observed. In this function a negative number means days before index -#' and a postive number means days after index. -#' @export -offset <- function(days) { - coeff <- dplyr::if_else(sign(days) == 1, "after", "before", "before") - new("Endpoint", - days = as.integer(abs(days)), - coeff = coeff) -}} +\title{Function creates an event window where the event starts} \usage{ eventStarts(a, b, index = c("startDate", "endDate")) } @@ -28,21 +18,5 @@ either at the index start date or index enddate} An event window that can be used in a Capr cohort definition } \description{ -#' Function looking at all time before an event -#' @export -allDaysBefore <- function() { - new("Endpoint", - days = "all", - coeff = "before") -} -} -\details{ -#' Function looking at all time after an event -#' @export -allDaysAfter <- function() { - new("Endpoint", - days = "all", - coeff = "after") -} Function creates an event window where the event starts }