inst/data-raw/wordhash.R

wordhash <- lexicon::hash_grady_pos %>%
  as_tibble() %>%
  mutate(word = str_replace_all(word, "[:punct:]|[:space:]", "_")) %>%
  group_by(word) %>%
  summarise() %>%
  mutate(index = row_number(word)) %>%
  relocate(index)

save(wordhash, file = "data/wordhash.rda", compress = "bzip2")
tools::checkRdaFiles("data/wordhash.rda")
blaserlab/blaseRdata documentation built on March 31, 2024, 6:51 a.m.