reorder: reorder

View source: R/reorder.R

reorderR Documentation

reorder

Description

Reorders columns based on a string with separators. Defaults to splitting using "\|", because that is what is used by Qualtrics.

Usage

reorder(data, key_column, sep = "\\|")

Arguments

data

a data frame.

key_column

a character string indicating the column containing the order strings.

sep

a character string indicating the symbol that is used to split the column names. Defaults to "\|" because that is what is used by Qualtrics.


camkay/panoply documentation built on Jan. 17, 2025, 6:31 a.m.