Ivan Krylov
2023-May-24 09:46 UTC
[R] Filtering DataFrame by Hours using dateRangeInput in Shiny
? Wed, 24 May 2023 10:47:54 +0300 konstantinos christodoulou <konstantinos.christodoulou1 at gmail.com> ?????:> Dear R Support Team,If you need paid support for Shiny, check out <https://shiny.posit.co/r/help.html>.> I have a dataframe in R with a column named 'start_time,' which is > classified as POSIXct. My objective is to use the dateRangeInput() > widget in Shiny to filter the dataset based on the 'start_time' > column, specifically by selecting hours on a particular day.There's a third-party package called shinyTime which seems to let the user enter times, unlike shiny::dateRangeInput(), which only accepts dates. I'm afraid you'll have to combine information from multiple input widgets yourself by subsetting the resulting POSIXlt objects. Unfortunately, since this e-mail was composed in HTML instead of plain text, we only see a mangled version of it: https://stat.ethz.ch/pipermail/r-help/2023-May/477434.html -- Best regards, Ivan
konstantinos christodoulou
2023-May-24 10:11 UTC
[R] Filtering DataFrame by Hours using dateRangeInput in Shiny
Thank you Ivan for sharing this information! I will check it out. BR, Kostas On Wed, May 24, 2023 at 12:46?PM Ivan Krylov <krylov.r00t at gmail.com> wrote:> ? Wed, 24 May 2023 10:47:54 +0300 > konstantinos christodoulou <konstantinos.christodoulou1 at gmail.com> > ?????: > > > Dear R Support Team, > > If you need paid support for Shiny, check out > <https://shiny.posit.co/r/help.html>. > > > I have a dataframe in R with a column named 'start_time,' which is > > classified as POSIXct. My objective is to use the dateRangeInput() > > widget in Shiny to filter the dataset based on the 'start_time' > > column, specifically by selecting hours on a particular day. > > There's a third-party package called shinyTime which seems to let the > user enter times, unlike shiny::dateRangeInput(), which only accepts > dates. I'm afraid you'll have to combine information from multiple > input widgets yourself by subsetting the resulting POSIXlt objects. > > Unfortunately, since this e-mail was composed in HTML instead of plain > text, we only see a mangled version of it: > https://stat.ethz.ch/pipermail/r-help/2023-May/477434.html > > -- > Best regards, > Ivan >[[alternative HTML version deleted]]