getNumberOf {DAPAR} | R Documentation

## Number of lines with prefix

### Description

Returns the number of lines, in a given column, where content matches the prefix.

### Usage

    getNumberOf(obj, name = NULL, prefix = NULL)

### Arguments

`obj` | An object of class `MSnSet`.
`name` | The name of a column.
`prefix` | A string

### Value

An integer

### Author(s)

Samuel Wieczorek

### Examples

    utils::data(Exp1_R25_pept, package='DAPARdata')
    getNumberOf(Exp1_R25_pept, "Potential_contaminant", "+")

[Package DAPAR version 1.19.18 Index]