Make a shiny app from a dataset

build_shiny_app(dataset, covariates, outcome_var, data_dictionary = NULL)

Arguments

dataset
  • data.frame or data.table of data. This will get saved into data/dataset.rds for the app.

covariates
  • character vector of covariates, corresponding to the column names of dataset

outcome_var
  • character of variable name in dataset correpsonding to the outcome of interest

data_dictionary
  • optional; a data frame that describes the variables in the dataset.

This function allows you to build a shiny app for a dataset. For more info, please see the "Making a Burro App" vignette.

Value

shiny app in a folder

Examples

#create a new project/folder in RStudio before you run this library(ggplot2) data(diamonds) covars <- colnames(diamonds) if(interactive()){ burro::build_shiny_app(dataset=diamonds, covariates=covars, outcome_var="cut") }