R/utils_nnGarrote_construction.R

Defines functions construct.cv.nnGarrote construct.nnGarrote

# -----------------------------------------------------------------------
# Object Construction for nnGarrote object
#
# object: the nnGarrote object
# fn_call: the function call
construct.nnGarrote <- function(object, fn_call){
  class(object) <- append("nnGarrote", class(object))
  object$call <- fn_call
  return(object)
}

# -----------------------------------------------------------------------
# Object Construction for cv.nnGarrote object
#
# object: the cv.nnGarrote object
# fn_call: the function call
construct.cv.nnGarrote <- function(object, fn_call){
  class(object) <- append("cv.nnGarrote", class(object))
  object$call <- fn_call
  return(object)
}

Try the nnGarrote package in your browser

Any scripts or data that you put into this service are public.

nnGarrote documentation built on Oct. 7, 2021, 9:06 a.m.