Skip to content

Commit

Permalink
remove deprecated endpoint functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ablack3 committed Sep 6, 2023
1 parent 71f1dd8 commit 31a4286
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 32 deletions.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 2.1.0
Date: 2023-08-14 16:10:03 UTC
SHA: 7ae41403a936fe50e2cb12052df4a3b99e6022b1
Version: 2.0.6
Date: 2023-09-06 18:37:34 UTC
SHA: 71f1dd8bb419ec22cb023ee8502417a1bb82ccef
30 changes: 1 addition & 29 deletions R/window.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,39 +90,11 @@ continuousObservation <- function(priorDays = 0L, postDays = 0L) {

}

#Depreciated Endpoint functions
#' #' 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)
#' }
#'
#' #' Function looking at all time before an event
#' #' @export
#' allDaysBefore <- function() {
#' new("Endpoint",
#' days = "all",
#' coeff = "before")
#' }
#'
#' #' Function looking at all time after an event
#' #' @export
#' allDaysAfter <- function() {
#' new("Endpoint",
#' days = "all",
#' coeff = "after")
#' }


## EventWindow ---------------------

#' Function creates an event window where the event starts
#'
#' @param a the left side of the event window
#' @param b the right side of the event window
#' @param index specifying what part of the index we start looking for events
Expand Down

0 comments on commit 31a4286

Please sign in to comment.