naflex {naflex}R Documentation

naflex: Flexible Options for Handling Missing Values

Description

The naflex package provides additional flexibility for handling missing values in summary functions beyond the two extreme options (na.rm = TRUE/FALSE) available in base R.

Details

Most summary functions in R e.g. mean provide the option for the two extremes:

In many applications something in between these two extremes is often appropriate. For example, you may wish to give a summary statistic if less than 5% of values are missing.

naflex provides helper functions to facilitate this flexibility for dealing with missing values, particularly within summary functions.

In particular naflex provides four types of missing value checks:

These checks can be used individually or in combination with each other within summary functions.


[Package naflex version 0.1.0 Index]