data-raw/tw_empty_wikipedia_page.R

## code to prepare `tw_empty_wikipedia_page` dataset goes here

tw_empty_wikipedia_page <- c(
  "title_url",
  "wikipedia_title",
  "wikipedia_id",
  "qid",
  "description",
  "disambiguation",
  "language"
) %>%
  purrr::map_dfc(setNames,
    object = list(character())
  )

tw_empty_wikipedia_page$wikipedia_id <- as.integer()
tw_empty_wikipedia_page$disambiguation <- as.logical()


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