sort_cols: Alphabetise data frame and tibble columns

View source: R/sort_cols.R

sort_colsR Documentation

Alphabetise data frame and tibble columns

Description

sort_cols alphabetises the columns of a data frame or tibble.

Usage

sort_cols(.data, ...)

Arguments

.data

A data frame or tibble.

...

(Optional) unquoted expressions determining left-most columns. See dplyr::select for syntax requirements.

Value

An object of the same class as .data.

Examples

sort_cols(mtcars, weight = wt)  # left-most column will be "weight"


bldavies/bldr documentation built on March 29, 2024, 10:22 a.m.