Learn R Programming

useful (version 1.2.4)

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

Arguments

x

The data

r

Number of rows to display

c

Number of columns to show

Arguments passed on to other functions

Value

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

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
# NOT RUN {
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