R/utils-tabyl.R

Defines functions tabyl

# inspired by janitor::tabyl(),
# to skip the dependency

tabyl <- function(x) {
  dataframe <- tibble::tibble(x = x) |>
    dplyr::count(x) |>
    dplyr::mutate(percent = n / sum(n))
  colnames(dataframe) <- c(".", "n", "percent")
  dataframe
}

Try the emodnet.wfs package in your browser

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

emodnet.wfs documentation built on Aug. 8, 2025, 6:20 p.m.