findLocalMax {EEM}R Documentation

Find local maximum peaks

Description

Find local maximum peaks in EEM data

Usage

findLocalMax(data, ...)

## S3 method for class 'EEM'
findLocalMax(data, n, threshold = 0.7, showprint = TRUE, ...)

## S3 method for class 'matrix'
findLocalMax(data, n, threshold = 0.7, showprint = TRUE,
  ...)

## S3 method for class 'numeric'
findLocalMax(data, threshold = 0.7, showprint = TRUE, ...)

Arguments

data

EEM data generated by readEEM function, unfolded EEM data generated by unfold function or a vector of numeric values which have names in the format of EX...EM...

...

(optional) further arguments passed to other methods

n

sample number. The number should not exceed length(EEM).

threshold

threshold value in between 0 and 1. Lower the value to cover low peaks.

showprint

logical value whether to print out the results or not

Value

return a character vector of peak names. If showprint = TRUE, it will also print a dataframe of indicating the value of local maximum peaks.

Methods (by class)

Examples

data(applejuice)
findLocalMax(applejuice, 1) 

applejuice_uf <- unfold(applejuice)
findLocalMax(applejuice_uf, 1) 


[Package EEM version 1.1.1 Index]