AssignLabelsToGroups: Convenience function for the median normalisation.

Description Usage Arguments Value Examples

View source: R/NormaliseDataset.R

Description

The function assigns a specific value to members of a specific group. Used in order to group Metabolon run days together, e.g. 1, 2, 3 are actually the same run day.

Usage

1
AssignLabelsToGroups(groupList, valInGroup)

Arguments

groupList

A list of arrays of groups

valInGroup

An value to find in one of the arrays in the groupList

Value

the index in the list that valInGroup belongs to

Examples

1
2
AssignLabelsToGroups(list(c(1, 2, 3), c(4, 5, 6)), 6)
#returns 2 as item 6 is in the second group in the list

miepstei/MetabolonR documentation built on May 22, 2019, 10:50 p.m.