Learn R Programming

Tmisc (version 1.0.1)

corner: Print the top left corner of a data frame

Description

Prints the first n rows and columns of a data frame or matrix.

Usage

corner(x, n = 5)

Value

The corner of the data frame

Arguments

x

A data.frame.

n

The number of rows/columns to print.

Examples

Run this code
corner(mtcars)
corner(iris, n=4)

Run the code above in your browser using DataLab