Learn R Programming

IDSL.FSA (version 1.2)

FSA_aggregate: aggregation method for FSA

Description

This module is to optimize the `indexVec` variable by removing elements that have redundant `idVec` numbers.

Usage

FSA_aggregate(idVec, variableVec, indexVec, targetVar)

Value

a clean indexVec after removing redundant `idVec`.

Arguments

idVec

a vector of id numbers. Repeated id numbers are allowed

variableVec

a vector of variable of the interest such as RT, m/z, etc.

indexVec

a vector of indices

targetVar

the targeted value in `variableVec`