topleft: Grabs the top left corner of a data set

View source: R/corner.r

topleftR Documentation

Grabs the top left corner of a data set

Description

Display the top left corner of a rectangular data set

Usage

topleft(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 left corner of a rectangular data set.

This is a wrapper function for corner

Value

... The top left 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 topright bottomleft bottomright left right

Examples


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


jaredlander/useful documentation built on Nov. 4, 2023, 10:56 a.m.