R/gatherings_table.R

#' @title Gatherings Table
#' @description Document gatherings names mapping table.
#' @param ... Arguments to be passed
#' @return Document gatherings table
#' @export
#' @author Leo Lahti \email{leo.lahti@@iki.fi}
#' @references See citation("comhis")
#' @examples # gatherings_table()
#' @keywords utilities
gatherings_table <- function (...) {

  f <- system.file("extdata/document_size_abbreviations.csv", package = "comhis")
  dd <- read.csv(f, header = TRUE, sep = ";")
  dd <- apply(dd, 2, as.character)
  dd[dd == ""] <- NA
  dd <- as.data.frame(dd, stringsAsFactors = FALSE)

  dd

}
COMHIS/comhis documentation built on Aug. 15, 2021, 11:07 a.m.