R/nrows.R

Defines functions nrows

Documented in nrows

#' Number of rows
#'
#' Return the number of rows in a table.
#'
#' @param data A data frame or data table.
#'
#' @return An integer scalar.
#' @export
nrows <- function(data) {
  nrow(bt_as_data_frame(data))
}

Try the basetable package in your browser

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

basetable documentation built on Sept. 18, 2026, 9:13 a.m.