View source: R/pipeline-helpers.R
repeat_add_columns | R Documentation |
Repeat a data frame for each entry in a second, binding the columns together.
repeat_add_columns(x, y)
x |
Data frame (tibble) to repeat |
y |
A copy of |
This corresponds to repeat_and_add_vector
in the old data system.
A repeated x
with columns from y
added.
BBL
x <- tibble::tibble(x = 1:3)
y <- tibble::tibble(y = c(4, 5), z = c(6, 7))
repeat_add_columns(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.