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

view

View an object


Description

[Experimental]

Calls utils::View() on the input and returns it, invisibly. If the input is not a data frame, it is processed using a variant of as.data.frame(head(x, n)). A message is printed if the number of rows exceeds n. This function has no effect in noninteractive sessions.

Usage

view(x, title = NULL, ..., n = NULL)

Arguments

x

The object to display.

title

The title to use for the display, by default the deparsed expression is used.

...

Unused, must be empty.

n

Maximum number of rows to display. Only used if x is not a data frame.

Details

The RStudio IDE overrides utils::View(), this is picked up correctly.


tibble

Simple Data Frames

v3.1.1
MIT + file LICENSE
Authors
Kirill Müller [aut, cre], Hadley Wickham [aut], Romain Francois [ctb], Jennifer Bryan [ctb], RStudio [cph]
Initial release

We don't support your browser anymore

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