OHDSI / CohortDiagnostics

An R package for performing various cohort diagnostics.
https://ohdsi.github.io/CohortDiagnostics
40 stars 45 forks source link

Filter concept name by using regular expression #998

Open gowthamrao opened 1 year ago

gowthamrao commented 1 year ago

A very powerful function in CohortExplorer is the use of regular expressions to filter a table.

We can have a text box where a user may put in a regular expression. the regular expression then filters a table with concept name as follows

data[grepl(input$filterRegex, data$conceptName, ignore.case = TRUE),]