ex: Examine the first elements of an object

Description Usage Arguments Details Value Examples

View source: R/ex.R

Description

Examine the first elements of an object

Usage

1
ex(x, ...)

Arguments

x

An object to examine

...

Arguments to head() or ex.data.frame() (See details)

Details

This function is intended to provide a look at an R object. For a data.frame, it will return by default the first 6 rows and columns. For other non-list objects, the function defaults to whatever head() returns. For list objects (that aren't data.frames), the function will recursively apply itself to all objects in the list.

Value

A data.frame

Examples

1
2
test <- list(iris, letters, list(mtcars, LETTERS))
ex(test)

pedrostrusso/prlib documentation built on May 5, 2019, 11:01 p.m.