1 | remove_na_cols(X, na_thresh = 1)
|
X |
A data.table or data.frame whose all NA columns we want to remove |
na_thresh |
The proportion of elements in the column that have to be NA before we remove it. Defaults to 1. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.