Skip to content

Commit

Permalink
use base::order until #198 is fixed
Browse files Browse the repository at this point in the history
From: Sebastian Gibb <mail@sebastiangibb.de>

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MSnbase@127876 bc3139a8-67e5-0310-9ffc-ced21a209358
  • Loading branch information
l.gatto committed Mar 30, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 95e8909 commit ec5ceeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
@@ -329,7 +329,7 @@ getVariableName <- function(match_call, varname) {
" have to be equal.")
}
rs <- .summariseRows(x, fun, ...)
o <- orderNumeric(as.double(rs), decreasing=TRUE, na.last=TRUE)
o <- order(as.double(rs), decreasing=TRUE, na.last=TRUE)
idx <- unlist(lapply(split(o, groupBy[o]), "[", 1:n), use.names=FALSE)
idx[!is.na(idx)]
}

0 comments on commit ec5ceeb

Please sign in to comment.