Skip to content

explorer()

Becca Krouse edited this page Aug 1, 2018 · 2 revisions

explorer()

Produces an interactive codebook explorer to explore data frames within the RStudio viewer, a web browser, or an Rmarkdown or HTML document.

Param Type Description
data list or chr containing the names of data frames data to be summarized
addEnv logical specifies whether to load all data-frames in current R environment (default = FALSE)
demo list specifies whether to load sample data sets and ignore other options (default = FALSE)

Examples

The code below shows how to initialize explores for several different use cases

### Generate explorer using all data loaded into R session (default).
explorer(data = NULL, addEnv = TRUE)

### Provide a list of (optionally named) data frames.
explorer(data = list(Cars = mtcars, Iris = iris))

### Alternatively, provide data frames currently loaded in R session as a character vector.
explorer(data = c("mtcars","iris"))

### Generate explorer using data from the datasets package.
explorer(demo = TRUE)
Clone this wiki locally