repeat_add_columns: repeat_add_columns

View source: R/pipeline-helpers.R

repeat_add_columnsR Documentation

repeat_add_columns

Description

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

Usage

repeat_add_columns(x, y)

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

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

bpbond/gcamdata documentation built on March 22, 2023, 4:52 a.m.