Description Usage Arguments See Also Examples
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.
1 |
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 |
demo |
Logical. Indicates whether to display demo data frames. If |
codebook
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.