R/getObsErrorSTD.R

#' @title Return component \code{ObsErrSTD} from the input object
#'
#' @description \code{getObsErrorSTD} extracts the component \code{ObsErrSTD} of the slot
#' \code{VarRoles} of the input object.
#'
#' @param object Object of class \linkS4class{contObsPredModelParam}.
#'
#' @return character vector corresponding to the component \code{ObsErrSTD} of the input parameter.
#'
#' @examples
#'
#' @export
setGeneric("getObsErrorSTD", function(object){standardGeneric("getObsErrorSTD")})

#' @rdname getObsErrorSTD
#'
#' @export
setMethod(
  f = "getObsErrorSTD",
  signature = c("contObsPredModelParam"),
  function(object){object@VarRoles$ObsErrSTD}
)
david-salgado/contObsPredModelParam documentation built on Nov. 7, 2019, 5:45 p.m.