move_front: Move columns to the front of a data.frame

Description Usage Arguments Examples

View source: R/utils.R

Description

This function is taken from daattali/rsalad R package.

Usage

1
move_front(df, cols)

Arguments

df

A data.frame.

cols

A vector of column names to move to the front.

Examples

1
2
3
df <- data.frame(a = character(0), b = character(0), c = character(0))
move_front(df, "b")
move_front(df, c("c", "b"))

ddpcr documentation built on June 24, 2017, 9:01 a.m.