mirror of
https://github.com/msberends/AMR.git
synced 2025-10-19 15:46:20 +02:00
(v1.2.0.9011) mo_domain(), improved error handling
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
#' availability()
|
||||
#' }
|
||||
availability <- function(tbl, width = NULL) {
|
||||
stop_ifnot(is.data.frame(tbl), "`tbl` must be a data.frame")
|
||||
x <- base::sapply(tbl, function(x) {
|
||||
1 - base::sum(base::is.na(x)) / base::length(x)
|
||||
})
|
||||
|
Reference in New Issue
Block a user