R/syncing_df_expand.R

Defines functions syncing_df_expand

Documented in syncing_df_expand

#' @rdname expanding_vectors_or_dataframes
#' @export
syncing_df_expand <- function(x,
                              newLength,
                              fill = TRUE,
                              expandFun = NULL,
                              silent = rock::opts$get('silent')) {

  res <-
    lapply(
      x,
      syncing_vector_expand,
      newLength = newLength,
      fill = fill,
      silent = silent
    );

  res <- as.data.frame(res);

  names(res) <- names(x);

  return(res);

}

Try the rock package in your browser

Any scripts or data that you put into this service are public.

rock documentation built on Dec. 28, 2022, 1:55 a.m.