cbind_fast: Faster alternative to 'cbind_fast'

Description Usage Arguments Value Examples

View source: R/utils.R

Description

This is not as 'safe' as using cbind_fast - for example, if df1 has columns with the same name as columns in df2, then they will be over-written.

Usage

1
cbind_fast(df1, df2)

Arguments

df1

A data.frame.

df2

Another data.frame

Value

A data.frame equal to df1 with the columns of df2 appended.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
df1 <- data.frame(x = 1:5, y = 1:5 * 0.1)
df2 <- data.frame(a = 6:10, b = 6:10 * 0.25)
df3 <- cbind_fast(df1, df2)
df3
#   x   y  a    b
# 1 1 0.1  6 1.50
# 2 2 0.2  7 1.75
# 3 3 0.3  8 2.00
# 4 4 0.4  9 2.25
# 5 5 0.5 10 2.50

## End(Not run)

pipeliner documentation built on May 1, 2019, 6:49 p.m.