unabbreviate_vector.Rd
replaces acronyms in vector using dictionary of acronyms
unabbreviate_vector(original_vector, acronyms)
original_vector | character vector with acronyms |
---|---|
acronyms | tibble with two character columns: acronym, meaning |
character vector with acronyms replaced by their meaning
replaces acronyms in character vector using dictionary of acronyms
acronyms = tibble::tribble(~acronym, ~meaning, "FOURIER_M", "s1_12+s2_12+s3_12+s4_12+s5_12+c1_12+c2_12+c3_12+c4_12+c5_12+c6_12", "FOURIER_Q", "s1_4+c1_4+c2_4", "TRENDS", "trend_lin+trend_root") unabbreviate_vector(c("aaa", "bbb + FOURIER_M"), acronyms)#> [1] "aaa" #> [2] "bbb + s1_12+s2_12+s3_12+s4_12+s5_12+c1_12+c2_12+c3_12+c4_12+c5_12+c6_12"