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

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.