R/getRepo.R

#' @title Return the slot Repo
#' 
#' @description \code{getRepo} returns the slot \code{Repo} of an object of 
#' class \linkS4class{RepoTimeInt}. 
#' 
#' @param object Object of class \code{\linkS4class{RepoTimeInt}}.
#'
#' @return A character vector with the time intervals in the repo notation.
#'  
#' @examples
#' getRepo(newRepoTime('TT12015'))
#' 
#' 
#' @seealso \code{\link{RepoTimeInt-class}}, \code{\link{getlubriInt}}
#' 
#' @include RepoTimeInt-class.R
#' 
#' @export
setGeneric("getRepo", function(object){standardGeneric("getRepo")})

#' @rdname getRepo
#' 
#' @export
setMethod(
  f = "getRepo",
  signature = c("RepoTimeInt"),
  function(object){ object@Repo }
)
david-salgado/RepoTime documentation built on Feb. 2, 2024, 2:07 p.m.