column_orderings: Get sets of column orderings

View source: R/column_orderings.R

column_orderingsR Documentation

Get sets of column orderings

Description

Column A is ordered ahead of column B if A[i]>=B[i] for all rows i in which neither A or B has missing values. A column ordering is a sequence of column names which are in order e.g. A>=B>=C. This function returns a list of all possible orderings which are not a subset of another ordering. The orderings are possible not definite where there are NAs (treated as missing values).

Usage

column_orderings(df)

Arguments

df

A data frame with only atomic columns (no list or data frame columns).

Value

A list of vectors of column names. Each name vector gives an ordering of columns largest to smallest.


jedwards24/jemisc documentation built on Oct. 23, 2022, 10:17 p.m.