R/tags_defaults.R

Defines functions tags_defaults

Documented in tags_defaults

#' Generate default tags for a linelist
#'
#' This function returns a named list providing the default tags for a
#' `linelist` object (all default to NULL).
#'
#' @export
#'
#' @importFrom stats setNames
#'
#' @return A named `list`.
#'
#' @examples
#' tags_defaults()
#'
tags_defaults <- function() {
  setNames(
    vector(
      "list",
      length = length(tags_types())
    ),
    names(tags_types())
  )
}

Try the linelist package in your browser

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

linelist documentation built on June 22, 2024, 10:54 a.m.