tests/testthat/test-keyword_merge.R

test_that("merge keywords", {
  expect_equal(
    bibli_data_table[1:3,] %>%
      keyword_clean(lemmatize = FALSE) %>%
      keyword_merge(reduce_form = "stem") %>%
      pull(keyword) %>% head(),
    c("austerity", "community capacity", "comparative librarianship", "continuation will of volunteering", "contributing intention to the library", "korea")
  )
})

Try the akc package in your browser

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

akc documentation built on Jan. 6, 2023, 9:09 a.m.