Skip to contents

This function creates a Shiny module server for uploading CSV or Excel files, processing the data, and returning a tidied dataset.

Usage

shiny_dataUploadServer(id)

Arguments

id

A character string that corresponds to the ID used in the UI function for this module.

Value

A reactive expression containing the tidied data frame with the following columns:

  • Date: Date and time, floored to the hour

  • Sensor: Sensor identifier

  • Site: Site identifier

  • Temp: Median average temperature for each hour

  • RH: Median average relative humidity for each hour

Examples

if (FALSE) { # \dontrun{

# In a Shiny app:
ui <- fluidPage(
  shiny_dataUploadUI("dataUpload")
)

server <- function(input, output, session) {
  data <- shiny_dataUploadServer("dataUpload")
}

} # }