## aggregation-by options
output$aggByCtrl <- renderUI({
aggByOpts <- origVars()
selectInput('aggBy', 'Aggregate By', choices=aggByOpts, multiple=T)
})
## aggregation target options
output$aggTargetCtrl <- renderUI({
aggTargetOpts <- origNumericVars()
selectInput('aggTarget', 'Aggregation Target', choices=aggTargetOpts, multiple=T)
})
## aggregation method options
output$aggMethCtrl <- renderUI({
aggMethOpts <- c('mean', 'sum', 'count', 'min', 'max', 'median')
selectInput('aggMeth', 'Aggregation Method', choices=aggMethOpts, multiple=T)
})
## aggregation share of
# output$shareOfCtrl <- renderUI({
# shareOfOpts <- factorVars()
# selectInput('shareOf', 'Share Of', choices=c('None', shareOfOpts))
# })
## aggregation share target
# output$shareTargetCtrl <- renderUI({
# shareTargetOpts <- numericVars()
# selectInput('shareTarget', 'Share Target', choices=c('None', shareTargetOpts))
# })
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.