mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 06:30:48 +01:00
Fixes #57
This commit is contained in:
1 parent
1e4eaf23f2
commit
2ed5f13880
6 files changed
+25
-14
No files matched your search
+5
-1
@@ -457,7 +457,11 @@ ab_validate <- function(x, property, ...) {
|
||||
|
||||
if (!all(x %in% AB_lookup[, property, drop = TRUE])) {
|
||||
x <- as.ab(x, ...)
|
||||
x <- AB_lookup[match(x, AB_lookup$ab), property, drop = TRUE]
|
||||
if (all(is.na(x)) && is.list(AB_lookup[, property, drop = TRUE])) {
|
||||
x <- rep(NA_character_, length(x))
|
||||
} else {
|
||||
x <- AB_lookup[match(x, AB_lookup$ab), property, drop = TRUE]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user