move_front {ddpcr} | R Documentation |
Move columns to the front of a data.frame
Description
This function is taken from daattali/rsalad R package.
Usage
move_front(df, cols)
Arguments
df |
A data.frame. |
cols |
A vector of column names to move to the front. |
Examples
df <- data.frame(a = character(0), b = character(0), c = character(0), stringsAsFactors = TRUE)
move_front(df, "b")
move_front(df, c("c", "b"))
[Package ddpcr version 1.15.2 Index]