cbind_fast {pipeliner} | R Documentation |
Faster alternative to cbind_fast
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
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
## 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)
[Package pipeliner version 0.1.1 Index]