R/create_glue_df.R

Defines functions create_glue_df

create_glue_df <- function(x,
                           glue = "",
                           rows = 1) {

  return(
    stats::setNames(
      as.data.frame(
        matrix(
          rep(
            glue,
            rows * ncol(x)
          ),
          ncol = ncol(x)
        )
      ),
      names(x)
    )
  );

}
gitlab-r-packages-mirror/rock documentation built on Dec. 3, 2024, 5:40 p.m.