We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4596dcd commit db645c9Copy full SHA for db645c9
R/clonalutils.R
@@ -224,9 +224,9 @@ screp_subset <- function(screp, subset) {
224
group_by(!!!syms(unique(c(id, groups)))) %>%
225
summarise(.n = n(), .groups = "drop")
226
227
- if (!is.null(order)) {
228
- data2 <- data2 %>% arrange(!!parse_expr(order))
229
- }
+ order <- order %||% "-.n"
+ data2 <- data2 %>% arrange(!!parse_expr(order))
+
230
if (!is.null(groups)) {
231
data2 <- data2 %>% group_by(!!!syms(groups))
232
}
0 commit comments