Description Usage Arguments Value Examples
remove_na() is a function that removes observations that have an NA in any specified column
1 | remove_na(DT, cols, track = T)
|
DT |
a data.table |
cols |
columns to look for NA observations |
track |
logical, if TRUE prints the number of observations dropped because of each variable |
The data.table without NAs in any of the specified columns
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.