data-raw/tw_empty_wikipedia_page_sections.R

## code to prepare `tw_empty_wikipedia_page_sections` dataset goes here

tw_empty_wikipedia_page_sections <- c(
  "toclevel", "level", "line", "number", "index", "fromtitle",
  "byteoffset", "anchor"
) %>%
  purrr::map_dfc(setNames,
    object = list(character())
  )

tw_empty_wikipedia_page_sections$toclevel <- as.integer()
tw_empty_wikipedia_page_sections$byteoffset <- as.integer()


usethis::use_data(tw_empty_wikipedia_page_sections, overwrite = TRUE)
giocomai/tidywikidatar documentation built on Aug. 2, 2024, 5:33 p.m.