Hi all,
This is my code which filters tweets depends upon Sys.Date().
Problem in this code, after time passes 23:59 that is, new day stars. There will be no tweet or very limited tweets sended by people. So, filter does not give substantial result. My R shiny dashboard does not work.
Is it possible to run this code for example after 12:00? any suggestion?
Hi @oktayozden
Best option would be to select the last 24 hours instead of working with days.
In my suggestion below, just replace tweets_df with the actual name of your dataframe, and harvested_date with the appropriate variable you have.
Things you may need to check:
make sure your date format is parsed correctly (you may need to adapt ymd_hms)
Check if any issue with time zones
make clear in your UI that you're displaying the last 24 hours