checkGrpOrder: checkGrpOrder

View source: R/checkGroupOrder.R

checkGrpOrderR Documentation

checkGrpOrder

Description

checkGrpOrder tests each line of 'x' if expected order appears. Used for comparing groups of measures with expected profile (simply by mataching expected order)

Usage

checkGrpOrder(
  x,
  rankExp = NULL,
  revRank = TRUE,
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Arguments

x

matrix or data.frame

rankExp

(numeric) expected order for values in columns, default 'rankExp' =1:ncol(x)

revRank

(logical) if 'revRank'=TRUE, the initial ranks & reversed ranks will be tested

silent

(logical) suppress messages

debug

(logical) display additional messages for debugging

callFrom

(character) allow easier tracking of messages produced

Value

vector of logical values

See Also

checkGrpOrderSEM

Examples

set.seed(2005); mat1 <- rbind(matrix(round(runif(40),1),nc=4), rep(1,4))
checkGrpOrder(mat1)
checkGrpOrder(mat1,c(1,4,3,2))

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