moveme: Move column position

Description Usage Arguments Value Examples

Description

Uses verb notation to move columns in dataframe

Usage

1
moveme(df, movecommand)

Arguments

movecommand

command that depicts how columns are moved: before, after, first, last

invec

names of dataframe that you will be organising

Value

vector of column names

Examples

1
2
3
4
5
6
7
a <- b <- c <- d <- e <- f <- g <- 1:100
df <- data.frame(a,b,c,d,e,f,g)
df <- df %>% tbl_df

# Usage
df %>% moveme(., "g first")
df %>% moveme(., "g first; a last; e before c")

HanjoStudy/quotidieR documentation built on May 5, 2019, 6:13 p.m.