Learn R Programming

WGCNA (version 1.27-1)

normalizeLabels: Transform numerical labels into normal order.

Description

Transforms numerical labels into normal order, that is the largest group will be labeled 1, next largest 2 etc. Label 0 is optionally preserved.

Usage

normalizeLabels(labels, keepZero = TRUE)

Arguments

labels
Numerical labels.
keepZero
If TRUE (the default), labels 0 are preserved.

Value

  • A vector of the same length as input, containing the normalized labels.