Skip to content
Snippets Groups Projects
Commit 0d1b5ee1 authored by Scott Manski's avatar Scott Manski
Browse files

fixed the averages issue

parent eb371a96
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,8 @@ server <- shinyServer(function(input, output, session) {
if (input$display_section != "All"){
average_data <- average_data[average_data$section == as.numeric(input$display_section), ]
}
paste("Average of Judgment Sample Averages:", round(mean(average_data$aveword), 2))
average_data <- average_data[!is.na(average_data$aveword), ]
paste("Average of Judgment Sample Averages:", round(mean(average_data$aveword, rm.na = TRUE), 2))
} else {
""
}
......@@ -214,7 +215,8 @@ server <- shinyServer(function(input, output, session) {
if (input$display_section != "All"){
average_data <- average_data[average_data$section == as.numeric(input$display_section), ]
}
paste("Average of Random Sample Averages:", round(mean(average_data$aveword), 2))
average_data <- average_data[!is.na(average_data$aveword), ]
paste("Average of Random Sample Averages:", round(mean(average_data$aveword, rm.na = TRUE), 2))
} else {
""
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment