#' Return row matching pattern
#'
#' @param data Tibble of datasets or datafiles as returned by datasets()
#' and datafiles()
#' @param pattern string used to filter the dataset and idbank list
#'
#' @return the datafiles or datasets table filtered with the pattern
#' @export
#'
#' @examples
#' dido_search(datasets(), "drom")
dido_search <- function(data, pattern) {
filter(data, if_any(everything(), ~ grepl(pattern, ., ignore.case = TRUE)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.