Skip to contents

Apply a series of filtering steps to the data set.

Usage

filterOutIn(
  dataSet,
  listName = c(),
  regexName = c(),
  removeList = TRUE,
  saveRm = TRUE
)

Arguments

dataSet

A data frame containing the data signals.

listName

A character vector of compounds to select or remove.

regexName

A character vector specifying compounds for regular expression pattern matching to select or remove.

removeList

A boolean (default = TRUE) specifying whether the list of compounds should be removed or selected.

  • TRUE: Remove the list of compounds from the data.

  • FALSE: Remove all compounds not in the list from the data.

saveRm

A boolean (default = TRUE) specifying whether to save removed data to current working directory. This option only works when removeList = TRUE.

Value

The filtered data.

Details

If both listName and regexName are provided, the compound names selected or removed will be the union of those specified in listName and those matching the regex pattern in regexName.