mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-12-16 17:42:10 +01:00
474 B
474 B
Drop-in replacement for the base::sort_by with option to remove NAs
Drop-in replacement for the base::sort_by with option to remove NAs
Usage
sort_by(x, y, na.rm = FALSE, ...)
Arguments
-
x:
x
-
y:
y
-
na.rm:
remove NAs
-
...:
passed to base_sort_by
Value
vector
Examples
sort_by(c("Multivariable", "Univariable"), c("Univariable", "Minimal", "Multivariable"))
#> [1] "Univariable" NA "Multivariable"