R/pos_stack_x.R

Defines functions pos_stack_x

Documented in pos_stack_x

#' Title
#'
#' @inheritParams pos_wrap
#'
#' @return
#' @export
#'
#' @examples
pos_stack_x <- function(x0 = 0,
                   n = 5,
                   ncol = 3,
                   width = 1){

  (0:(n-1) %% ncol)*width + x0

}
EvaMaeRey/ggstamp documentation built on June 30, 2022, 11 p.m.