corner: Show the top-left corner

View source: R/fns.R

cornerR Documentation

Show the top-left corner

Description

This function pulls out the top-left corner of a data frame or matrix. This is useful if the input is very tall and/or wide, such that printing the entire object fills up the entire console, even with the nice printing features of tibbles.

Usage

corner(x, nr = 5, nc = 5)

Arguments

x

the input data frame or matrix

nr

number of rows to pull out

nc

number of columns to pull out

Details

use negative nr or nc to select bottom or right corners, respectively.


andrewGhazi/geryon documentation built on April 14, 2025, 3:51 p.m.