[prev in list] [next in list] [prev in thread] [next in thread]
List: r-packages
Subject: [R-pkgs] Package "naflex": Flexible Options for Handling Missing Values
From: Danny Parsons <danny () idems ! international>
Date: 2022-02-02 16:10:41
Message-ID: CABxkZL5b3Vfa=Q44iAgwQ0T6gK8BNU8W_3o_vzyb=azx=+t46g () mail ! gmail ! com
[Download RAW message or body]
Dear all,
I have recently released a new package "naflex" on CRAN:
https://cran.r-project.org/web/packages/naflex/index.html.
"naflex" provides helper functions that give additional flexibility for
handling missing values in summary functions (beyond the current extremes
of na.rm = TRUE/FALSE).
For example, allow up to 20% of values to be missing:
library(naflex)
library(magrittr)
x <- c(1, 3, NA, 4, 3, 2, NA, 5, 8, 7)
mean(x %>% na_omit_if(prop = 0.2))
# 4.125
mean(x %>% na_omit_if(prop = 0.1))
# NA
Please see the package details or vignette for the full set of checks
available.
I hope this may be of use to some as a convenient way to work with various
missing value rules.
Feedback, suggestions and bug reports are welcome at
https://github.com/dannyparsons/naflex or by email
(danny@idems.international)
Best regards,
Danny Parsons
[[alternative HTML version deleted]]
_______________________________________________
R-packages mailing list
R-packages@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic