syncing_df_expand | R Documentation |
Expand a vector or data frame
syncing_df_expand(
x,
newLength,
fill = TRUE,
neverFill = NULL,
paddingValue = NA,
expandFun = NULL,
silent = rock::opts$get("silent")
)
syncing_vector_expand(
x,
newLength,
fill = TRUE,
paddingValue = NA,
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 |
neverFill |
Columns to never fill regardless of whether fill is |
paddingValue |
The value to insert for rows when not filling (by default, filling carries over the value from the last preceding row that had a value specified). |
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.