reorder_columns_by_names: Reorder a matrix with column names by a character vector

View source: R/utilities.R

reorder_columns_by_namesR Documentation

Reorder a matrix with column names by a character vector

Description

Reorder a matrix with column names by a character vector

Usage

reorder_columns_by_names(mat, names)

Arguments

mat

a matrix with colnames that may contain sep

names

a character vector by which to reorder the columns. hese are the grouping keys of the columns (the string before sep)

Value

a matrix with the same data but reordered columns


novisci/gofl documentation built on March 28, 2022, 1:17 a.m.