explore {radiant.data} | R Documentation |
Explore and summarize data
Description
Explore and summarize data
Usage
explore(
dataset,
vars = "",
byvar = "",
fun = c("mean", "sd"),
top = "fun",
tabfilt = "",
tabsort = "",
tabslice = "",
nr = Inf,
data_filter = "",
arr = "",
rows = NULL,
envir = parent.frame()
)
Arguments
dataset |
Dataset to explore |
vars |
(Numeric) variables to summarize |
byvar |
Variable(s) to group data by |
fun |
Functions to use for summarizing |
top |
Use functions ("fun"), variables ("vars"), or group-by variables as column headers |
tabfilt |
Expression used to filter the table (e.g., "Total > 10000") |
tabsort |
Expression used to sort the table (e.g., "desc(Total)") |
tabslice |
Expression used to filter table (e.g., "1:5") |
nr |
Number of rows to display |
data_filter |
Expression used to filter the dataset before creating the table (e.g., "price > 10000") |
arr |
Expression to arrange (sort) the data on (e.g., "color, desc(price)") |
rows |
Rows to select from the specified dataset |
envir |
Environment to extract data from |
Details
See https://radiant-rstats.github.io/docs/data/explore.html for an example in Radiant
Value
A list of all variables defined in the function as an object of class explore
See Also
See summary.explore
to show summaries
Examples
explore(diamonds, c("price", "carat")) %>% str()
explore(diamonds, "price:x")$tab
explore(diamonds, c("price", "carat"), byvar = "cut", fun = c("n_missing", "skew"))$tab