inst/translation/airlines_en.R

.airlines_en <- function(airlines, labels_only = FALSE, as_labelled = FALSE) {
  # airlines comes from nycflights13

  comment(airlines) <- c(
    "The 'airlines' from 'nycflights13' with labels.")

  airlines <- labelise(airlines, self = FALSE,
    label = list(
      carrier = "Carrier id",
      name = "Carrier name"),
    units = list(
      carrier = NA,
      name = NA),
    as_labelled = as_labelled)

  #if (!isTRUE(labels_only)) {
  # Nothing to do!
  #}

  airlines
}
SciViews/data.io documentation built on May 5, 2024, 1:39 p.m.