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()
}
jthomasmock/gtExtras documentation built on April 6, 2024, 5:28 a.m.