topright: Grabs the top right corner of a data set

View source: R/corner.r

toprightR Documentation

Grabs the top right corner of a data set

Description

Display the top right corner of a rectangular data set

Usage

topright(x, r = 5L, c = 5L, ...)

Arguments

x

The data

r

Number of rows to display

c

Number of columns to show

...

Arguments passed on to other functions

Details

Displays the top right corner of a rectangular data set.

This is a wrapper function for corner

Value

... The top right corner of the data set that was requested. The size depends on r and c.

Author(s)

Jared P. Lander www.jaredlander.com

See Also

head tail corner topleft bottomleft bottomright left right

Examples


data(diamonds)
head(diamonds)      # displays all columns
topright(diamonds)    # displays first 5 rows and only the last 5 columns


useful documentation built on Oct. 24, 2023, 9:07 a.m.