makeIndex: Make an index vector out of selective/top masses

makeIndexR Documentation

Make an index vector out of selective/top masses

Description

A function that makes an index for selective or top masses. Replaces the method libId.

Usage

  makeIndex(lib, sel=TRUE)

Arguments

lib

A tsLib object.

sel

A logical flag. If TRUE return an integer index for selective masses, otherwise for top masses.

Details

This is an internal function that should not be used. It is exposed because the method it replaces, libId, was originally exposed, so compatibility is not lost.

Value

An integer vector, where each number is associated with an element of the library object, and its multiplicity with the number of selective or top masses.

Note

It is equivalent to the deprecated method libId.

Author(s)

Alvaro Cuadros-Inostroza

See Also

tsLib

Examples

# load example objects
data(TSExample)
# generate an index for selective masses
(idx <- makeIndex(refLibrary, TRUE))

acinostroza/TargetSearch documentation built on Nov. 22, 2024, 3:31 p.m.