Reorder according to the requested variables

Description

Uses the prCaSelectAndOrderVars for finding the orders according to the order argument.

Usage

1
prCaReorder(mtrx2reorder, var_order, order)

Arguments

mtrx2reorder

The matrix to reorder

var_order

The variables representing different rows prMapVariable2Name

order

A vector of strings used for prCaSelectAndOrderVars

Value

matrix Returns the mtrx2reorder rearranged with the attribute "greps" for the greps from prCaSelectAndOrderVars and the attribute "var_order" for the new var_order

See Also

Other printCrudeAndAdjusted functions: prCaAddRefAndStat, prCaAddReference, prCaAddUserReferences, prCaGetImputationCols, prCaGetRowname, prCaGetVnStats, prCaPrepareCrudeAndAdjusted, prCaReorderReferenceDescribe, prCaSelectAndOrderVars, prCaSetRownames, printCrudeAndAdjustedModel

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.