syncing_df_expand | R Documentation |
Expand a vector or data frame
syncing_df_expand(
x,
newLength,
fill = TRUE,
expandFun = NULL,
silent = rock::opts$get("silent")
)
syncing_vector_expand(
x,
newLength,
fill = TRUE,
expandFun = NULL,
silent = rock::opts$get("silent")
)
x |
The vector or data frame |
newLength |
The new length (or number of rows for a data frame) |
fill |
When expanding streams, whether to duplicate elements to fill
the resulting vector. Ignored if |
expandFun |
If specified, when expanding streams, instead of potentially
filling the new larger vector with elements (if |
silent |
Whether to be silent or chatty. |
The expanded vector
rock::syncing_vector_expand(letters[1:10], 15);
rock::syncing_vector_expand(letters[1:10], 15, fill=FALSE);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.