dot-verifyConditions: Verify whether conditions are met in a data frame

Description Usage Arguments Value

Description

Verify if the specified columns within the data frame match specified conditions. Match is performed using grepl (case insensitive, with perl set to TRUE). Any given row will be returned as TRUE if ANY of its columns matched to ANY of the keywords with ANY of the prefixes and ANY of the suffixes.

Usage

1
.verifyConditions(df, keywords, columns, prefixes, suffixes)

Arguments

df

Data frame to be verified

keywords

Vector of strings to be searched for

columns

Vector with column names (within df) to be searched for

prefixes

(Optional) Vector or list with prefixes to keywords (its first dimension needs to be the same as columns)

suffixes

(Optional) Vector or list with suffixes to keywords (its first dimension needs to be the same as columns)

Value

Logical vector (same length as df) with TRUE indicating matches to the conditions


ss-lab-cancerunit/SpiderSeqR documentation built on Nov. 2, 2020, 12:18 a.m.