Przeglądaj źródła

dplyr::desc() instead of desc()

rewrite
Garrick Aden-Buie 7 lat temu
rodzic
commit
7b1714c789
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      R/run_regex.R

+ 1
- 1
R/run_regex.R Wyświetl plik

@@ -60,7 +60,7 @@ wrap_result <- function(x, escape = FALSE, exact = FALSE) {
inserts <- inserts %>%
tidyr::gather(type, loc, start:end) %>%
filter(!is.na(.data$loc)) %>%
dplyr::arrange(loc, class, desc(type)) %>%
dplyr::arrange(loc, class, dplyr::desc(type)) %>%
mutate(
class = ifelse(.data$pad > 0, sprintf("%s pad%02d", .data$class, .data$pad), .data$class),
insert = ifelse(.data$type == 'start', sprintf('<span class="%s">', .data$class), "</span>")

Ładowanie…
Anuluj
Zapisz