Description Usage Arguments Value Examples
View source: R/removeVariable.R
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.
1 | removeVariable(data = NULL, string = NA, na.prop = 1, nan.prop = 1)
|
data |
a data.frame from which variables are removed. |
string |
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. |
a data.frame from which some variables are removed.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.