repeat_add_columns: repeat_add_columns

Description Usage Arguments Details Value Author(s) Examples

View source: R/pipeline-helpers.R

Description

Repeat a data frame for each entry in a second, binding the columns together.

Usage

1

Arguments

x

Data frame (tibble) to repeat

y

A copy of x is created for each row of this tibble

Details

This corresponds to repeat_and_add_vector in the old data system.

Value

A repeated x with columns from y added.

Author(s)

BBL

Examples

1
2
3
x <- tibble::tibble(x = 1:3)
y <- tibble::tibble(y = c(4, 5), z = c(6, 7))
repeat_add_columns(x, y)

rohmin9122/gcam-korea-release documentation built on Nov. 26, 2020, 8:11 a.m.