This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2023-07-11 14:29:40 +02:00
1 parent 8df1cd8d97
commit 66eeeb4b88
6 files changed
+15 -11

No files matched your search

+1 -1
View File
@@ -70,7 +70,7 @@
#' # interpret whole data set, pretend to be all from urinary tract infections:
#' as.sir(df, uti = TRUE)
as.disk <- function(x, na.rm = FALSE) {
meet_criteria(x, allow_class = c("disk", "character", "numeric", "integer"), allow_NA = TRUE)
meet_criteria(x, allow_NA = TRUE)
meet_criteria(na.rm, allow_class = "logical", has_length = 1)
if (!is.disk(x)) {