# Server Output Functions for Parameter Settings Tab
output$currentParameterSettings <- renderTable({
# start with an empty stucture and add rows.
p<- NULL
# Add each name-value pair... adjust as necessary. Lists need to be pasted and unlisted...
p <- addRow( p, "File name", input$file1[1] )
p <- addRow( p, "Columns to include", paste( unlist(input$CFcolumnsID), collapse=', ') )
# p <- addRow( p, "Range of occurrences included", paste( unlist(input$occRowsToInclude), collapse=', ') )
# p <- addRow( p, "Temporal granularity", input$timeScaleID )
p <- addRow( p, "Define threads by", paste( unlist(input$THREAD_CF_ID), collapse=', ') )
p <- addRow( p, "Define events by", paste( unlist(input$EVENT_CF_ID), collapse=', ') )
# convert to data frame and add column names
p <- as.data.frame(p)
names(p) <- c("Parameter","Value")
# return the name-value data frame
p
})
addRow <- function(Vals, Name, Value){ return( rbind(Vals, c(as.character(Name), as.character(Value)))) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.