mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 04:20:53 +01:00
new AMR distance function
This commit is contained in:
1 parent
fbd5d32541
commit
3fca703fbf
10 files changed
+343
-6
No files matched your search
+6
-1
@@ -374,7 +374,12 @@ set_ab_names <- function(data, ..., property = "name", language = get_AMR_locale
|
||||
|
||||
if (is.data.frame(data)) {
|
||||
if (tryCatch(length(list(...)) > 0, error = function(e) TRUE)) {
|
||||
df <- pm_select(data, ...)
|
||||
out <- tryCatch(suppressWarnings(c(...)), error = function(e) NULL)
|
||||
if (!is.null(out)) {
|
||||
df <- data[, out, drop = FALSE]
|
||||
} else {
|
||||
df <- pm_select(data, ...)
|
||||
}
|
||||
} else {
|
||||
df <- data
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user