toFilter {ComPrAn} | R Documentation

## Optional Filtering For Raw Data

### Description

Filters only rows with specified values in columns Rank and Confidence Level , specified as cl

### Usage

    toFilter(.data, rank = 1, cl = c("Low", "Middle", "High"))

### Arguments

`.data` | dataframe
`rank` | integer
`cl` | charater any combination of one or more of 'Low', 'Middle', or 'High'

### Value

a dataframe

### Examples

    ##Use example peptide data set, read in and clean data
    inputFile <- system.file("extData", "data.txt", package = "ComPrAn")
    peptides <- peptideImport(inputFile)
    peptides <- cleanData(peptides, fCol = "Search ID")
    ##optional filtering based on rank and confidence level
    peptides <- toFilter(peptides, rank = 1)

[Package ComPrAn version 1.2.0 Index]