R/tail.R

#' Print last six observations.
#'
#' \code{tail} will print the last six values of an object.
#'
#' @param x Formula or other object to print.
#' @param data Data frame. The data where the variables can be found.
#' @examples
#' head(~hp, data = mtcars)
#' tail(~hp, data = mtcars)
#'
#' @importFrom mosaic aggregatingFunction1
#' @export

# Allow user to use formula syntax with tail function.
tail <- aggregatingFunction1(utils::tail)
mobilizingcs/mobilizr documentation built on May 5, 2024, 1:01 a.m.