minor steps
Some checks are pending
pkgdown.yaml / pkgdown (push) Waiting to run

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-03-12 18:27:46 +01:00
commit efc3f8acc3
No known key found for this signature in database
23 changed files with 1467 additions and 644 deletions

View file

@ -292,3 +292,17 @@ append_list <- function(data,list,index){
}
out
}
#' Get missingsness fraction
#'
#' @param data data
#'
#' @returns numeric vector
#' @export
#'
#' @examples
#' c(NA,1:10,rep(NA,3)) |> missing_fraction()
missing_fraction <- function(data){
NROW(data[is.na(data)])/NROW(data)
}