Skip to contents

These functions are used to check input arguments.

Usage

isPeaksMatrix(x)

Arguments

x

object to test.

Value

logical(1), TRUE if checks are successful otherwise FALSE.

Details

isPeaksMatrix: test for a numeric matrix with two columns named "mz" and "intensity". The "mz" column has to be sorted increasingly.

See also

Other helper functions for developers: between(), rbindFill(), validPeaksMatrix(), vapply1c(), which.first()

Author

Sebastian Gibb

Examples

isPeaksMatrix(1:2)
#> [1] FALSE
isPeaksMatrix(cbind(mz = 2:1, intensity = 1:2))
#> [1] FALSE
isPeaksMatrix(cbind(mz = 1:2, intensity = 1:2))
#> [1] TRUE