viewData: View data

Description Usage Arguments Examples

View source: R/viewData.R

Description

A simple widget to view, filter, and sort data. The function viewData() has a few optional arguments.

Usage

1
2
viewData(data, showFilter = FALSE, row.names = FALSE,
  renderURLS = FALSE, launch.browser = FALSE)

Arguments

data

name of the data object you want to view (e.g., mtcars, iris, etc.)

showFilter

If TRUE, table filters will be displayed. The default option is FALSE.

row.names

By default, row.names are not printed. Use row.names = TRUE to print row names

renderURLS

If your data contains urls, use renderURLS = TRUE to make them clickable. These links must be prepared beforehand and wrapped in <a> html tag.

launch.browser

If TRUE, the table will be display in your system's default browser.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
viewData(data= iris)

viewData(data = iris, showFilter = TRUE)

viewData(data = iris, launch.browser = TRUE)

df <- iris
df$urls <- paste0('<a href="https://www.google.com.au/search?q=',Species,'">',Species,'</a>')

viewData(data = df, showFilter = TRUE, renderURLS = TRUE, launch.browser = TRUE)

## End(Not run)

davidruvolo51/viewData documentation built on May 6, 2019, 9:08 a.m.