Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

big.head

Return the First or Last Part of an Object


Description

Return the First or Last Part of an Object

Usage

big.head(x, n = 5, l = 5, r = 5)

Arguments

x

a "data.frame" or a "matrix" object

n

a single, positive integer, number of rows for the object to return

l

a single, positive integer, the number of columns to include on the left

r

a single, positive integer, the number of columns to include on the right

Details

Returns the first or last rows of a data frame like head() and tail(), but also only returns the first and last columns. This has been implemented to check big data frames.

Value

An object (usually) like 'x' but generally smaller.

Author(s)

Pierre Roudier pierre.roudier@gmail.com

See Also

Examples

big.head(mtcars)
big.tail(mtcars)
big.tail(mtcars, 10)
big.head(mtcars, 10, 2, 4)
big.head(mtcars, , , 1)

data(australia)
big.head(australia)

spectacles

Storing, Manipulating and Analysis Spectroscopy and Associated Data

v0.5-3
GPL-3
Authors
Pierre Roudier [aut, cre], Max Kuhn [ctb], Kristian Hovde Liland [ctb], Bjorn-Helge Mevik [ctb], Hadley Wickham [ctb], Raphael Viscarra Rossel [dtc]
Initial release
2021-01-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.