R/inspect.R

Defines functions inspect

Documented in inspect

#' Inspect a Data Frame
#'
#' Inspect a data frame.
#'
#' @param x A data frame.
#' @param n Integer specifying the number of rows to inspect at random.
#' @export
inspect <- function(x, n = 8) {
  dplyr::tbl_df(x[sample(nrow(x), size = n, replace = FALSE), ])
}
bgreenwell/bmisc documentation built on Sept. 24, 2019, 11:09 a.m.