sort_columns: Dataframe Column Sorting Function

Description Usage Arguments

View source: R/sort_columns.R

Description

sort_columns takes two arguments, the name of a dataframe and the order (ascending or descending), and will then provide the dataframe in the column sorting as specified.

Usage

1
sort_columns(df = NULL, order = "asc", verbose = FALSE)

Arguments

df

data.frame; the source data.frame to be sorted.

order

string; if "asc", the function sorts in ascending order; if "desc", the function sorts in descending order.

verbose

logical; if TRUE, the function prints messages about objects being sorted.


mike-decarlo/caser documentation built on Sept. 23, 2019, 7:15 a.m.