IDWeek 2022 Tweets Shiny App
By Ken Koon Wong in IDweek 2022 shiny
December 18, 2022
Quick browing of #IDWeek2022 tweets and learn something more efficiently through shiny dashboard!
Tutorial on How to use this Shiny App
- Dashboard Introduction
- Search through Table Column
- Search with | aka OR operator
- Search using Additional Function on the Side Menu
- Negate Filter/Filter out function
- Limitations
- Lessons learnt/Conclusions
Dashboard Introduction:
- Search all columns
This function searches across all columns and filters out tweets with the keyword entered—the easiest to use. - Search individual columns
This function searches within the select column. - Additional searches
This function is essentially the same as Number 1.
Beware that this is overrides the searches in Number 1 and 2. So if this is used, please search through this first before using the search functions on the table - Negate Filter/Filter out function
This function is to negate the search keyword.
For example: “Show me all tweets WITHOUT the word "CMV" in it”
Search through Table Column
Notice how we have to put [Tt]
in front of ransplant
? That is
Regular Expression. It basically mean, “show me all tweets on this column with the word Transplant
or transplant
.
Search with | aka OR operator
Notice that we are using the top right search function, which will search across all columns and return the desired result.
[Tt]ransplant|hiv|HIV
keyword means: Return me any rows with the keywords Transplant
, transplant
, hiv
, or HIV
. So, if you are interested in HIV or Transplant topics, this is a good way of filtering out the relevant tweets.
Search using Additional Function on the Side Menu
This function is the same as the top right search function. It searches across the columns.
This is helpful when you want to search with AND operator. Meaning, if you want to filter the topics of interest [Tt]ransplant|hiv|HIV|Hiv
on the side menu AND you want to only include CMV
in the result.
Use side menu search to filter out topic of interet, then use search on table columns to refine your searches
Negate Filter/Filter out function
After filtering out the topic of interest [Tt]ransplant|hiv|HIV|Hiv
, and you want to filter out other topics, in this case [Tt]ecovirimat. Type in your keyword and the check the Not for it to work.
Negate function is helpful if you want to remove tweets off the result
Give it a try!
https://kenkoonwong.shinyapps.io/idweek22/
Limitations
- Menu search sticks but table search terms do not
- Hence if you want to use the menu search, use that first before the table
- need to know some Regular Expression knowledge
- Cannot confirm if tweet reflects accurate information, but sure creates curiosity to read and dive deep more
Lessons learnt/Conclusions:
dplyr::if_any
function thatfilter
across columns- very helpful in EDA
- Try searching
[Sstrep]
on the app- Step down to oral abx is OK
- Bactrim + no strep coverage is a myth?
- Group A Strep pharyngitis, 10 days
- ⬆️ Learning = organize * [ ⬆️curiosity + ⬇️noise ]
If you like this article:
- please feel free to send me a comment or visit my other blogs
- please feel free to follow me on twitter, GitHub or Mastodon
- if you would like collaborate please feel free to contact me
- Posted on:
- December 18, 2022
- Length:
- 3 minute read, 517 words
- Categories:
- IDweek 2022 shiny
- Tags:
- IDweek 2022 shiny