R/getT_change_confirmed.R

Defines functions getT_change_confirmed

Documented in getT_change_confirmed

#' @title Get time at which change is confirmed

#' @description Get time at which change is confirmed from "bayts" time series data frame created with \code{\link{createBayts}} and \code{\link{detectBayts}}. 

#' @author Johannes Reiche (Wageningen University)

#' @param bayts "bayts" time series data frame

#' @return time at which change is confirmed

#' @export 

getT_change_confirmed <- function(bayts){
    return(index(bayts[max(which(bayts$Flag=="Change"))]))
  } 
 
jreiche/bayts documentation built on Feb. 3, 2021, 1:12 a.m.