fuzzySearch: Fuzzysearch is a searching function for a string or a list of...

Description Usage Arguments Value Examples

View source: R/fuzzySearch.R

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

1
2
3
4
5
6
7
fuzzySearch(
  searchTerm = NULL,
  database = get_encode_df(),
  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

1
2
3
 
   fuzz_ex <- fuzzySearch(searchTerm=c("ELAVL1","atf7"),
   database=get_encode_df_demo(), filterVector ="target", multipleTerm = TRUE)

CharlesJB/ENCODExplorer documentation built on Dec. 9, 2019, 10:11 a.m.