max_na: Filter based on proportion of missing data

Description Usage Arguments Value

Description

Returns columns that have less than or equal to a specified amount of missingness.

Usage

1
max_na(x, max = 0.05)

Arguments

x

Input data frame or matrix.

max

Maximum proportion of missingnesses allowed. Columns with higher proportions of missingness compared to this value will be dropped. Columns will only be returned if they have 1 - max proportion non-missing. This value must be between 0-1. It defaults to .05.

Value

Data frame or matrix with columns with less than or equal to the max allowed proportion of missingness.


mkearney/tfse documentation built on July 6, 2019, 3:18 a.m.