АК
cols <- c("cyl", "mpg")Все что я нашел пока это перечисление колонок:
mtcars[order(mtcars[,cols]),]
mtcars[order(mtcars[,cols[1]], mtcars[,cols[2]]),]
mtcars[do.call(order, mtcars[cols]), ]
Size: a a a
АК
cols <- c("cyl", "mpg")Все что я нашел пока это перечисление колонок:
mtcars[order(mtcars[,cols]),]
mtcars[order(mtcars[,cols[1]], mtcars[,cols[2]]),]
mtcars[do.call(order, mtcars[cols]), ]
a
ЕХ
АК
ЕХ
NH
"\\s"
test_data %>%
mutate_if(~!any(grepl("[A-Za-z]",.)),
~as.numeric(str_replace_all(.,"\\s", "")))
E
E
ВК
ВК
ВК
А
VK
VK
VK
БА
VK
R
БА
R