Skip to content

Excel like filtering #1167

Open
Open

Description

@EkremBayar

I prefer to use datatable for my Shiny projects to show data faster. In my opinion, DT package is the best option if you need speed. On the other hand, the filtering method on datatable is so primitive and useless. I wonder, is there chance to implement excel-like filtering on datatables.

It would be great, if there was a filter for each data types (For example, numeric/date column:["equal", "greater", "greater than", ...], string column: ["contain", "startswith", ...] )

I found some examples of advanced menu filter (like Excel) below:

Is there a way to implement excel-like filtering with R Shiny and Datatable?

Thanks!

Images from the links I shared above:

Image

Image

Activity

  1. agilly commented on Mar 2, 2025

    @agilly

    R's DT library provides a way to access the DataTables javascript library. Anything that's not covered there is probably not going to end up in DT, and I don't think advanced excel-like filtering is present in DataTables. I'm not a DT developer though and will let others comment.

    Also, calling something "primitive and useless" before asking for a feature is probably not going to predispose devs to work on said feature.

  2. yihui commented on Mar 3, 2025

    @yihui
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions