syncing_df_expand {rock} | R Documentation |
Expand a vector or data frame
Description
Expand a vector or data frame
Usage
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")
)
Arguments
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. |
Value
The expanded vector
Examples
rock::syncing_vector_expand(letters[1:10], 15);
rock::syncing_vector_expand(letters[1:10], 15, fill=FALSE);
[Package rock version 0.8.1 Index]