combineReplFromListToMatr: Combine replicates from list to matrix

View source: R/combineReplFromListToMatr.R

combineReplFromListToMatrR Documentation

Combine replicates from list to matrix

Description

Suppose multiple measures (like multiple chanels) are taken for subjects and these measures are organized as groups in a list, like muliple parameters (= channels) or types of measurements (typically many paramters are recorded when screeinig compounds in microtiter plates). Within one parameter/channel all replicate-data from separate list-entries ('lst') will get combined according to names of list-elements. The function will trim any redundant text in names of list-elements, try to isolate separator (may vary among replicate-groups, but should be 1 character long). eg names "hct116 1.1.xlsx" & "hct116 1.2.xlsx" will be combined as replicates, "hct116 2.1.xlsx" will be considered as new group.

Usage

combineReplFromListToMatr(lst, callFrom = NULL)

Arguments

lst

(list) list of arrays (typically multi-parameter measures of micortiterplate data)

callFrom

(character) allows easier tracking of message(s) produced

Value

list of arrays now with same dimension of arrays (but shorter, since replicate-arrays were combined)

See Also

extr1chan, organizeAsListOfRepl

Examples

lst2 <- list(aa_1x=matrix(1:12,nrow=4,byrow=TRUE),ab_2x=matrix(24:13,nrow=4,byrow=TRUE))
combineReplFromListToMatr(lst2)

wrMisc documentation built on Jan. 7, 2023, 1:27 a.m.