Description Usage Arguments Details Value See Also Examples
delNArate
will compute NA rate of every variable in df
firstly, then delete variables whose na rate is greater than or equal to threshold, return a list contains deleted dataframe.
1 |
df |
A dataframe. |
narate_critical |
A numeric, Specifies NA rate threshold for selecting and returning variables, default |
exclude |
Vector of column names or numbers to exclude, default |
the returned list contains three components, one is dataframe named 'naratedf', second is a dataframe named 'delVardf', last one is an after-deleted dataframe.
A list
Other data preprocessing functions: delFewValues
,
delSinvalPercent
, excludeCol
,
maxSinvalPercent
1 2 3 4 | data(CreditData)
result1 <- delNArate(CreditData, narate_critical = 0.7)
result2 <- delNArate(CreditData, narate_critical = 0.7, exclude = "multiloantimes")
mysample <- result2[[3]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.