reorder_colnames: Reorders the column names for idaifield_as_matrix()

View source: R/utilities.R

reorder_colnamesR Documentation

Reorders the column names for idaifield_as_matrix()

Description

Reorders the column names for idaifield_as_matrix()

Usage

reorder_colnames(colnames, order = "default")

Arguments

colnames

a character vector with colnames

order

either "default" for default order (first columns are "identifier", "category", "shortDescription" and the rest is as assembled) or a character vector with exact column names that will then place these as the first n columns of the matrix produced by idaifield_as_matrix()

Value

a character vector

Examples

## Not run: 
colnames <- c("materialType", "identifier", "shortDescription", "category")

reorder_colnames(colnames, order = "default")

## End(Not run)

lsteinmann/idaifieldR documentation built on April 3, 2025, 2:06 p.m.