Learn R Programming

EEM (version 1.1.1)

findLocalMax: Find local maximum peaks

Description

Find local maximum peaks in EEM data

Usage

findLocalMax(data, ...)
"findLocalMax"(data, n, threshold = 0.7, showprint = TRUE, ...)
"findLocalMax"(data, n, threshold = 0.7, showprint = TRUE, ...)
"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)

  • EEM: for EEM data created by readEEM function
  • matrix: for unfolded EEM data created by unfold function
  • numeric: for a vector of numeric values which have names in the format of EX...EM...

Examples

Run this code
data(applejuice)
findLocalMax(applejuice, 1) 

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

Run the code above in your browser using DataLab