factor_orderer: Function to reorder factor presentation.

Description Usage Arguments Value

View source: R/functions.R

Description

Function to reorder factor presentation.

Usage

1
factor_orderer(df, column, column_order)

Arguments

df

dataframe, dataframe with factors being reordered.

column

numeric (or string), identifies column containing factors to reorder.

column_order

vector, identifies factors to 'push' to beginning of factor levels.

Value

A dataframe like df, but with column's factor levels reordered to put column_order at the beginning.


IskanderBlue/morseldash documentation built on Oct. 30, 2019, 7:24 p.m.