R/last_row_id.R

Defines functions last_row_id

Documented in last_row_id

#' Get last row id/index even by group
#'
#' @param gt_object An existing gt table object of class `gt_tbl`

last_row_id <- function(gt_object) {
  is_gt_stop(gt_object)

  get_row_index(gt_object) %>%
    dplyr::last()
}

Try the gtExtras package in your browser

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

gtExtras documentation built on Sept. 16, 2023, 1:08 a.m.