Skip to content

Commit

Permalink
best output of allotest
Browse files Browse the repository at this point in the history
  • Loading branch information
sestelo committed Oct 30, 2017
1 parent 50e4ad6 commit 99933f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/allotest.R
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ allotest <- function(formula, data, na.action = "na.omit",
colnames(result) <- c("Statistic", "pvalue")


if(length(res) > 1){
# factores=paste('Factor',1:length(res))
factores <- paste("Level", etiquetas[1:length(etiquetas)])

Expand All @@ -260,6 +261,11 @@ allotest <- function(formula, data, na.action = "na.omit",
rownames(result) <- c(factores)
}

}else{
rownames(result) <- ""
}


return(result)

}
Expand Down

0 comments on commit 99933f7

Please sign in to comment.