removeVariable: Remove variables containing NaNs or NAs from data.frames.
Description
In reading data, incomplete variables are sometimes included, and only NAs or NaNs are included in some variables.
This function removes such variables in the data.frame. In addition to NAs or NaNs, variables which contain specified keyword can also be removed.
a flag character specifying variables to be removed.
na.prop
a numeric value specifying NA threshold proportion for removing variables. The default threashold is 1.0, meaning that variables including only NAs are removed.
nan.prop
a numeric value specifying NaN threshold proportion for removing variables. The default threashold is 1.0, meaning that variables including only NaNs are removed.
Value
a data.frame from which some variables are removed.