R/create-unit-type.R

Defines functions create_unit_type

Documented in create_unit_type

#' Create unit type
#' @export
create_unit_type <- function(unit_type, ...) {
  assert_string(unit_type)
  .u <- list("unit_type" = sanitize_name(unit_type))
  .keys <- c(...)
  assert_character(.keys, null.ok = TRUE)
  for (.k in .keys) {
    .u[[.k]] <- TRUE
  }
  data.frame(.u)
}
seth127/MundusCentrum documentation built on Dec. 23, 2021, 12:20 a.m.