# ddply reactive
reactive.auditorPlyr <- reactive({
if(is.null(input$client_select))
return()
dat <- get(input$client_select)
ddply(dat, .(Auditor), summarize,
n = length(Score),
avgSco = round(mean(Score),2),
mScore = round(median(Score),2),
sdScore = round(sd(Score),2),
seScore = round(sd(Score) / sqrt(length(Score)),2),
avgDuration = round(mean(Duration/60),2),
mDuration = round(median(Duration/60),2),
sdDuration = round(sd(Duration/60),2),
seDuration = round(sd(Duration/60) / sqrt(length(Duration/60)),2)
)
})
output$auditorPlyr <- renderGvis({
gvisTable(reactive.auditorPlyr() )
})