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 to repeat |
y |
A copy of |
This function is used to repeat a table by specified values of a variable, written to a new column as necessary.
A repeated x
with columns from y
added.
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.