Skip to contents

This function allows for a user-defined re-ordering of data.table rows

Usage

do.reorder(dat, use.col, new.order)

Arguments

dat

NO DEFAULT. A data.table

use.col

DEFAULT = NULL. The column to use for re-ordering

new.order

DEFAULT = NULL. A vector of row values for the specified column, in the desired order

Author

Thomas M Ashhurst, thomas.ashhurst@sydney.edu.au