Learn R Programming

wrMisc (version 1.2.3)

checkGrpOrder: 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)

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

Value

vector of logical values

See Also

checkGrpOrderSEM

Examples

Run this code
# NOT RUN {
set.seed(2005); mat <- matrix(round(runif(40),1),ncol=4)
checkGrpOrder(mat)
checkGrpOrder(mat,c(1,4,3,2))
# }

Run the code above in your browser using DataLab