R/set_metadata.R

Defines functions set_metadata

#' Set Metadata Attributes
#'
#' @param x R object
#' @param meta_general general metadata
#' @param meta_units information about units
#' @keywords internal
#' @noMd
#' @noRd
#' @return \code{x} with attributes "meta_general" and "meta_units" being set
#'   (may be \code{NULL})
set_metadata <- function(x, meta_general, meta_units)
{
  structure(
    x,
    meta_general = meta_general,
    meta_units = meta_units
  )
}
KWB-R/kwb.hydrus1d documentation built on Nov. 21, 2022, 4:54 a.m.