View source: R/replicate_rows.R
replicate_rows | R Documentation |
Function to replicate rows in a data frame.
replicate_rows(df, n, reset = TRUE)
df |
Data frame to be replicated. |
n |
Number of times each row is to be replicated. |
reset |
Should row names be reset? Default is |
Stuart K. Grange
## Not run:
data_replicated <- replicate_rows(data_test, 10)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.