Skip to contents

Quickly view a data.frame or tibble as an interactive table in the Viewer pane.

Usage

view(
  data,
  page_size = 10,
  searchable = TRUE,
  filterable = TRUE,
  striped = TRUE,
  highlight = TRUE,
  compact = FALSE
)

Arguments

data

A data.frame or tibble to display.

page_size

Number of rows per page (default = 10).

searchable

Whether to enable search (default = TRUE).

filterable

Whether to enable column filters (default = TRUE).

striped

Whether to show striped rows (default = TRUE).

highlight

Whether to highlight rows on hover (default = TRUE).

compact

Whether to use a compact layout (default = FALSE).

Value

A reactable widget rendered in the Viewer pane.

Examples

view(iris)
view(mtcars, page_size = 20, striped = TRUE, filterable = TRUE)