The function generates glimpse-like results that can be shown in View.

view_glimpse(x, n = 5)

Arguments

x

A data frame or a tibble

n

A number of observations to show

Value

A data frame similar to glimpse.

Details

The function will automatically attempt to open the results using View. If this behaviour is not desired option show_view should be set to FALSE as in show_view = FALSE.

Examples

if (FALSE) { op <- options() options("open_view = FALSE") view_glimpse(mtcars) }