fuzzySearch {ENCODExplorer} | R Documentation

## Fuzzysearch is a searching function for a string or a list of string within the encode_df `data.table`. For faster processing, pass encode_df object as database parameter.

### Description

Fuzzysearch is a searching function for a string or a list of string within the encode_df `data.table`. For faster processing, pass encode_df object as database parameter.

### Usage

    fuzzySearch(searchTerm = NULL, database = NULL, filterVector = NULL,
      multipleTerm = FALSE, ignore_case = TRUE)

### Arguments

`searchTerm` | The keyword or a `list` of keyword to search.
`database` | A `data.table` with similar format as encode_df database.
`filterVector` | A `character` to apply the search on specific column.
`multipleTerm` | A boolean that indicate if the searchTerm is a list or even multiple searchTerm separete by a comma in a single string.
`ignore_case` | A `boolean` to enable the case sensitivity.

### Value

A `data.table` corresponding the every row of the database that contain at least of one the searchTerm.

### Examples

       fuzz_ex <- fuzzySearch(searchTerm=c("ELAVL1","atf7"),
       database=encode_df, filterVector ="target", multipleTerm = TRUE)

[Package ENCODExplorer version 2.8.0 Index]