Skip to content

Commit

Permalink
fixed minor error
Browse files Browse the repository at this point in the history
  • Loading branch information
Hy4m committed May 31, 2020
1 parent 56266b2 commit 43afec8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions R/get-order.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' get_order(hc)
#' @author Houyun Huang, Lei Zhou, Jian Chen, Taiyun Wei
#' @export
get_order <- function(x, name = NULL, ...) {
get_order <- function(x, ...) {
UseMethod("get_order")
}

Expand Down Expand Up @@ -79,8 +79,8 @@ get_order.quickcor <- function(x,
index = "row",
name = NULL,
...) {
x <- plot$data
x <- x$data
index <- match.arg(index, c("row", "column"))
order <- if(index == "row") get_row_name(x) else get_col_name(x)
get_order(order, index = index, name = name)
get_order(order, name = name)
}
2 changes: 1 addition & 1 deletion R/rand-forest.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ rand_forest <- function(spec,
randomForest <- get_function("randomForest", "randomForest")
importance <- get_function("randomForest", "importance")
set.seed(seed)
seeds <- as.integer(runif(n) * 10000)
seeds <- as.integer(stats::runif(n) * 10000)

explained <- structure(.Data = vector(length = n), names = names(spec), class = "numeric")
if(byrow) {
Expand Down
6 changes: 3 additions & 3 deletions man/get_order.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 43afec8

Please sign in to comment.