Skip to content

Commit

Permalink
fixing xval problem in server
Browse files Browse the repository at this point in the history
  • Loading branch information
thibautjombart committed Jul 7, 2015
1 parent f4234ed commit 5daa4fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inst/dapcServer/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ shinyServer(function(input, output) {
if(!is.null(input$doxval)) doxval <- input$doxval
if(input$useoptimnpca || doxval){
x <- getData()
mat <- as.matrix(na.replace(x, method="mean"))
mat <- tab(x, NA.method="mean")
grp <- pop(x)
result <- input$result
n.rep <- input$nrep
Expand All @@ -158,7 +158,7 @@ shinyServer(function(input, output) {
xval1 <- xvaldapc()
if(!is.null(xval1)){
x <- getData()
mat <- as.matrix(na.replace(x, method="mean"))
mat <- tab(x, NA.method="mean")
grp <- pop(x)
xval2 <- xval1[[1]]
successV <-as.vector(xval2$success)
Expand Down Expand Up @@ -316,7 +316,7 @@ shinyServer(function(input, output) {
if(!is.null(input$thresholdMethod)) method <- input$thresholdMethod
if(!is.null(input$LPaxis)) dimension <- input$LPaxis
x <- getData()
mat <- as.matrix(na.replace(x, method="mean", quiet=TRUE))
mat <- tab(x, NA.method="mean")
}

if(method=="quartile"){
Expand Down

0 comments on commit 5daa4fc

Please sign in to comment.