Description Usage Arguments Value Examples
This function wraps crunch::loadDataset()
in a
shiny::reactive()
object for use in a Shiny app. It also ensures
that the current user is authenticated with Crunch before proceeding.
1 |
... |
Arguments passed to |
A Shiny reactive
object.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
shinyServer(function(input, output, session) {
ds <- shinyDataset("Your dataset name")
freqs <- reactive({
fmla <- as.formula(paste("~", input$varname))
crtabs(fmla, data=ds())
})
})
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.