explorer: Create an interactive codebook explorer

Description Usage Arguments See Also Examples

View source: R/explorer.R

Description

This function produces an interactive codebook explorer using R htmlwidgets. The interactive codebook explorer allows the user to explore multiple data frames within the RStudio viewer or a web browser. The explorer can also be embedded in an R Markdown document or saved as a standalone HTML page.

Usage

1
explorer(data = NULL, addEnv = TRUE, demo = FALSE)

Arguments

data

A list of (optionally named) data frames. Also accepts a character vector of data frame names (must be loaded in environment).

addEnv

Logical. Indicates whether to add all data frames in current environemnt to explorer. Defaults to addEnv=TRUE.

demo

Logical. Indicates whether to display demo data frames. If TRUE, dataList and addEnv settings will be ignored. Defaults to demo=FALSE.

See Also

codebook

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
### 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)

datadigest documentation built on May 2, 2019, 7:15 a.m.