Learn R Programming

MLMOI (version 0.1.2)

moi_duplicatefinder: Finds forbidden sample ID repetitions

Description

Sample IDs need to be uniquely assigned to samples. This function checks if a sample ID is assigned to two or more different samples. Similarly, the marker labels need to be uniquely defined. This function is also used to check forbidden marker label repetitions.

Usage

moi_duplicatefinder(total, sam_mark, nummtd, rw_col)

Value

a warning which informs the user of forbidden repetition of sample ID's or marker labels.

Arguments

total

string vector; vector of sample IDs.

sam_mark

string; a string which is either "Sample ID" or "Marker".

nummtd

numeric; number of metadata columns plus 2.

rw_col

string vector; variable used to switch between row and column in case of transposed data. Namely, c("rows ", "row ", "column ", "columns ").

See Also

For further details see: moimport moi_labels.