Learn R Programming

useful (version 1.2.6)

topleft: 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, ...)

Value

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

Arguments

x

The data

r

Number of rows to display

c

Number of columns to show

...

Arguments passed on to other functions

Author

Jared P. Lander www.jaredlander.com

Details

Displays the top left corner of a rectangular data set.

This is a wrapper function for corner

See Also

head tail corner topright bottomleft bottomright left right

Examples

Run this code

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

Run the code above in your browser using DataLab