mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
This commit is contained in:
parent
912fff7474
commit
efc3f8acc3
23 changed files with 1467 additions and 644 deletions
14
R/helpers.R
14
R/helpers.R
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue