Learn R Programming

ConSciR (version 0.3.0)

shiny_dataUploadServer: Shiny Module Server for Data Upload and Processing

Description

This function creates a Shiny module server for uploading CSV or Excel files, processing the data, optional time averaging as specified by the user, and returning a tidied dataset.

Usage

shiny_dataUploadServer(id)

Value

The returned reactive expression is a tidied data frame containing columns including Site and Sensor identifiers, a Date column rounded down (floored) to the user-selected averaging interval, median or chosen average temperature and relative humidity for each group, and any other numeric variables that were averaged if present in the input data.

Arguments

id

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

Examples

Run this code
if(interactive()) {
  ui <- fluidPage(
    shiny_dataUploadUI("dataUpload")
  )
  server <- function(input, output, session) {
    data <- shiny_dataUploadServer("dataUpload")
  }
}


Run the code above in your browser using DataLab