View source: R/convPairwiseSetup.R
| convPairwiseSetup | R Documentation |
This function aims to help getting organized with pairwise (statistical) testing since there are multiple ways of expressing how samples should be grouped for tests. For example this may be either as combined character strings (eg 'A-B') or as separate elements. This function takes most input-formats and returns multiple converted formats.
convPairwiseSetup(
useComparison,
grp,
experSetup = NULL,
sep = NULL,
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
useComparison |
(numeric or character vector or matrix) the argument allowing to specify the pairwise comparions
may be character as result of combining two group-names (from argument |
grp |
(character or factor) vector defining groups of replicates for additional checking (may also be just the levels of grp) |
experSetup |
(list) optional esperimental setup (list with $ind, $pwGrpIndex,$sep and $pwGrpNa as obtained using |
sep |
(character) optional custom separator to use for splitting |
silent |
(logical) suppress messages |
debug |
(logical) additional messages for debugging |
callFrom |
(character) allows easier tracking of messages produced |
This function returns a list with $pwGrpNa (matrix with separated elements), $pwIndex (matrix with separated indexes), $grpNa (levels of grp, ie sorted),
$sep (character vecor of separator found/used or suggested), $concat (pairwise concatenated names, eg 'A-B')
This function returns a list with $data, $nNA, $randParam, $NAneigLst, $seed, $filt, and $annot
presenceFilt, getPWseparator, indexGroupsFromPW, getPairwiseSetup, strsplit;
getPWseparator for default optimal separator; this function is used in moderTestXgrp
convPairwiseSetup(c("B-C","D-A"), LETTERS[1:4])
convPairwiseSetup(c("B","C"), LETTERS[1:3])
convPairwiseSetup("all", LETTERS[1:3])
convPairwiseSetup(2:3, LETTERS[1:3])
convPairwiseSetup(2:3, LETTERS[1:3], sep="__")
convPairwiseSetup(matrix(c("B","D","C","A"), ncol=2), LETTERS[1:4])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.