Learn R Programming

strvalidator (version 1.3.0)

checkSubset: check subset

Description

checkSubset checks the result of subsetting

Usage

checkSubset(data, ref, console = TRUE, ignoreCase = TRUE, word = FALSE,
  debug = FALSE)

Arguments

data
a data frame in GeneMapper format containing column 'Sample.Name'.
ref
a data frame in GeneMapper format containing column 'Sample.Name', OR an atomic vector e.g. a single sample name string.
console
logical, if TRUE result is printed to R console, if FALSE a string is returned.
ignoreCase
logical, if TRUE case insesitive matching is used.
word
logical, if TRUE only exact match.
debug
logical indicating printing debug information.

Details

Check if ref and sample names are unique for subsetting. Prints the result to the R-prompt.