build_shiny_app: Make a shiny app from a dataset

Description Usage Arguments Value Examples

View source: R/xplor.R

Description

Make a shiny app from a dataset

Usage

1
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

1
2
3
4
5
6
7
8
#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")
}

laderast/burro documentation built on July 19, 2020, 10:51 p.m.