R/ht.R

Defines functions ht

Documented in ht

#' Get first 10 and last 10 rows of a data frame
#'
#' @param d A data frame
#' @export
#' @examples
#' ht(mtcars)

ht <- function(d) {
  rbind(utils::head(d,10), utils::tail(d,10))
}
sbw78/sbwtools documentation built on May 20, 2024, 9 a.m.