findLocalMax: Find local maximum peaks

Description Usage Arguments Value Methods (by class) Examples

Description

Find local maximum peaks in EEM data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

1
2
3
4
5
data(applejuice)
findLocalMax(applejuice, 1) 

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

EEM documentation built on May 2, 2019, 5:58 a.m.

Related to findLocalMax in EEM...