tail1: tail1

View source: R/tail1.R

tail1R Documentation

tail1

Description

Function to replicate the tail() function from the 'utils' package, but with a default of returning only one row.

Usage

tail1(x, n = 1)

Arguments

x

A vector, matrix, table, data frame or function.

n

The number of rows to return. Defaults to 1.

Examples

# Return one row
tail1(mtcars)
# Return multiple rows
tail1(x = mtcars, n = 3)


stpalan/SPTools documentation built on Aug. 21, 2023, 11:21 a.m.