stephbuon / hansard-shiny

Code for the "Hansard Viewer" web app (a prototype app for applying to future support).
https://shinyviz.smu.edu/shiny/public/hansard-shiny/
MIT License
5 stars 0 forks source link

Adjust filter debate titles code #25

Open stephbuon opened 3 years ago

stephbuon commented 3 years ago

To make use of data.table instead of dplyr:

df1 <- df1[grammatical_collocates %like% paste0("\\b", input$custom_search, "\\b|^", input$custom_search, "\\b|\\b", input$custom_search, "$")]