Learn R Programming

radiant.data (version 0.6.0)

explore: Explore data

Description

Explore data

Usage

explore(dataset, vars = "", byvar = "", fun = c("mean_rm", "sd_rm"), top = "fun", tabfilt = "", tabsort = "", nr = NULL, data_filter = "", shiny = FALSE)

Arguments

dataset
Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
vars
(Numerical) variables to summaries
byvar
Variable(s) to group data by before summarizing
fun
Functions to use for summarizing
top
The variable (type) to display at the top of the table
tabfilt
Expression used to filter the table. This should be a string (e.g., "Total > 10000")
tabsort
Expression used to sort the table (e.g., "-Total")
nr
Number of rows to display
data_filter
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")
shiny
Logical (TRUE, FALSE) to indicate if the function call originate inside a shiny app

Value

A list of all variables defined in the function as an object of class explore

Details

See http://radiant-rstats.github.io/docs/data/explore.html for an example in Radiant

See Also

summary.explore to show summaries

Examples

Run this code
result <- explore("diamonds", "price:x")
summary(result)
result <- explore("diamonds", c("price","carat"), byvar = "cut", fun = c("n_missing", "skew"))
summary(result)
diamonds %>% explore("price", byvar = "cut", fun = c("length", "n_distinct"))

Run the code above in your browser using DataLab