peek: Data Frame Viewing

Description Usage Arguments Details Value See Also Examples

Description

peek - Convenience function to view all the columns of the head of a truncated base::data.frame(). peek invisibly returns x. This makes its use ideal in a dplyr/magrittr pipeline.

unpeek - Strips out class textreadr so that the entire base::data.frame() will be printed.

Usage

1
2
3
peek(x, n = 10, width = 20, strings.left = TRUE, ...)

unpeek(x)

Arguments

x

A base::data.frame() object.

n

Number of rows to display.

width

The width of the columns to be displayed.

strings.left

logical. If TRUE strings will be left aligned.

...

For internal use.

Details

By default dplyr does not print all columns of a tibble. This makes inspection of data difficult at times, particularly with text string data. peek() allows the user to see a truncated head for inspection purposes.

Value

Prints a truncated head but invisibly returns x.

See Also

utils::head()

Examples

1
2

textreadr documentation built on Oct. 9, 2021, 5:06 p.m.