whichVars
takes a data frame and the names of a set of columns
and returns the names of those columns that do not have an excessive fraction
of NA values
whichVars(a.df, vars = NA, thresh = 2/3)
A data frame
The names of the columns that contain data of interest
The fraction of NA values in a column that is acceptable
A vector of column names
This is a helper function for data processing.