insert_into: Inserts a column into a dataframe

Description Usage Arguments Value Examples

View source: R/insert_into.R

Description

Inserts a column or dataframe y into a dataframe x at the specified position

Usage

1
insert_into(x, y, where = 1)

Arguments

x

dataframe

y

dataframe

where

integer

Value

dataframe

Examples

1
2
3
df1<-data.frame(a=3,b=4,c=5)
df2<-data.frame(X=1,Y=2)
insert_into(df1, df2, where=1)

chorscroft/myRPackage documentation built on Nov. 12, 2019, 9:44 p.m.