order_by_vector: Order data frame by vector

View source: R/layout_helpers.r

order_by_vectorR Documentation

Order data frame by vector

Description

order_by_vector orders a data frame by a character vector.

Usage

order_by_vector(x, match_by, order_by)

Arguments

x

Data frame to order.

match_by

Character element specifying name of column to match by.

order_by

Character vector with character elements in the desired order, matching those in the dataframe column that is to be matched on.

Value

Reordered data frame.

See Also

query_abbrev for querying an object for abbrevs

Other table layout: add_colgroup(), add_cols(), add_rowgroup(), add_units(), firstrow_css(), layout_html(), order_layout(), prepare(), print_abbrev(), query_abbrev()

Examples

None yet.

eeenilsson/layout documentation built on Sept. 26, 2022, 8:14 p.m.