Skip to contents

Shift selected columns to the front

Usage

move_cols_to_front(df, cols)

Arguments

df

A data frame.

cols

A vector of column names

Value

A dataframe starting with the selected cols if they are present