
Shiny Module Server for Data Upload and Processing
Source:R/shiny_DataUploadServer.R
shiny_dataUploadServer.Rd
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.
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.
Examples
if(interactive()) {
ui <- fluidPage(
shiny_dataUploadUI("dataUpload")
)
server <- function(input, output, session) {
data <- shiny_dataUploadServer("dataUpload")
}
}