R/tbl_utils.R

big_mark <- function (x, ...){
  mark <- if (identical(getOption("OutDec"), ",")) 
    "."
  else ","
  formatC(x, big.mark = mark, ...)
}

dim_tbl <- function (x){
  dim_x <- dim(x)
  format_dim <- map_chr(dim_x, big_mark)
  paste(format_dim, collapse = " x ")
}

Try the fabletools package in your browser

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

fabletools documentation built on Feb. 9, 2026, 5:06 p.m.