R/spare_code.R

#' @export
name <- function(exp) {
  unname(exp["experiment"])
}


# ------------------------------------------------------------------------------


#' @export
`name<-` <- function(x, value) {
  x["experiment"] <- value
  x
}


# ------------------------------------------------------------------------------


f <- function(x, slot, value) {
  x[slot][names(value)] <- value
  x
}
choisy/gamar3 documentation built on May 28, 2019, 7:17 p.m.