1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 02:03:04 +02:00

documentation, file permissions

This commit is contained in:
2023-01-19 12:54:53 +01:00
parent b94bc6c67b
commit 593d740b84
78 changed files with 85 additions and 25 deletions

View File

@ -777,7 +777,7 @@ mo_info <- function(x, language = get_AMR_locale(), keep_synonyms = getOption("A
info <- lapply(x, function(y) {
c(
list(identifier = x),
list(mo = as.character(x)),
mo_taxonomy(y, language = language, keep_synonyms = keep_synonyms),
list(
status = mo_status(y, language = language, keep_synonyms = keep_synonyms),
@ -894,6 +894,8 @@ mo_validate <- function(x, property, language, keep_synonyms = keep_synonyms, ..
return(set_clean_class(x, new_class = c("mo", "character")))
} else if (property == "snomed") {
return(sort(as.character(eval(parse(text = x)))))
} else if (property == "prevalence") {
return(as.double(x))
} else {
# everything else as character
return(as.character(x))