reorderCols: A column reordering function

Description Usage Arguments Examples

View source: R/reorderCols.R

Description

This function reorders a dataframe according to the order of identical elements of another dataframe

Usage

1
reorderCols(x, match.data, x.col, new.col)

Arguments

x

The dataframe that needs to be reordered

matchData

The dataframe that contains the column to match

xCol

The column of x that needs to be reordered

newCol

The index of the column in matchData ywith respect to which you want to reorder x

Examples

1
reorderCols(x = my_df, match.data = new_df, x.col = 3, new.col = 4)

jr-leary7/jackknife documentation built on April 19, 2021, 2:18 a.m.