Learn R Programming

DAPAR (version 1.4.7)

getNumberOf: 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

Examples

Run this code
data(UPSpep25)
getNumberOf(UPSpep25, "Potential.contaminant", "+")

Run the code above in your browser using DataLab