match_term: Check for matching terms

Description

This function checks if the first term is found within a vector of terms. Return a logical value. It is smarter than simple string matching, e.g. match_term(v1s&v2s, v2s&v1s) == T, match_term(v1s, v1s&v2s) == T, match_term(v1s&v2s, v1s) == T.

Usage

1
match_term(t1, t2, mode = "logic")

Arguments

t1

character vector of length 1 or more. It should be a vector of gene variable.

t2

character vector of length 1 or more. It should be a vector of gene variables.

mode

character. Indicates the mode of action. Options: 'logic', 'unique'. Default to 'logic'.


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.