View source: R/shiny_DataUploadUI.R
| shiny_dataUploadUI | R Documentation |
Creates a Shiny UI module for uploading CSV or Excel files, and specifying flexible time averaging interval and statistic via text inputs. This UI includes the file upload control, a text box for entering the time averaging interval (e.g., "hour", "day", "month"), a text box for specifying the averaging statistic (e.g., "median", "mean"), and a download button for the tidied data.
shiny_dataUploadUI(id)
id |
Namespace ID for the module UI elements. |
A tagList containing UI output placeholders and inputs for averaging interval, averaging statistic, and data download.
if(interactive()) {
ui <- fluidPage(
shiny_dataUploadUI("dataUpload")
)
server <- function(input, output, session) {
data <- shiny_dataUploadServer("dataUpload")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.