| view | R Documentation |
Quickly view a data.frame or tibble as an interactive table in the Viewer pane.
view(
data,
page_size = 10,
searchable = TRUE,
filterable = TRUE,
striped = TRUE,
highlight = TRUE,
compact = FALSE
)
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). |
A reactable widget rendered in the Viewer pane.
if (requireNamespace("reactable", quietly = TRUE)) {
view(iris)
view(mtcars, page_size = 20, striped = TRUE, filterable = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.