Learn R Programming

LipidMS (version 3.0.5)

clust: Clustering for MS peaks based on mz or RT.

Description

Clustering for MS peaks based on mz or RT.

Usage

clust(values, mins, maxs, samples, unique.samples, maxdist, ppm)

Value

numeric vector with the assigned clusters

Arguments

values

values to clusterize (mz or RT).

mins

lower bound for each value.

maxs

higher bound for each value.

samples

numeric vector that indicates to which sample each value belongs.

unique.samples

logical. FALSE if several measures from the same sample can be clusterized together.

maxdist

maximum distance allowed within a cluster.

ppm

logical. TRUE if maxdist is given in ppm.

Author

M Isabel Alcoriza-Balaguer <maialba@iislafe.es>