andkov / ShinyEFA

experimental visual interface to decisions in Exploratory Factor Analysis based the interactive features of R Shiny and D3
3 stars 2 forks source link

subsetting dataset with switch() #2

Closed andkov closed 11 years ago

andkov commented 11 years ago

what is the proper syntax to subset data in reactive() of the "server.R" currently:

datasetInput <- reactive({
rotation <- switch(input$rotation, "Unrotated" = "none", "Varimax" = "varimax", "Promax" = "promax", "Quartimax" = "quartimax", "Quartimin" = "quartimin", "Crawford-Ferguson"="CF") })

andkov commented 11 years ago

use the input object "input$rotation" in subsetting in the output$ object.

both table and graphs are produced. graphs are rendering rather slow