Description Usage Arguments Value Examples
This function will replace NAs in the data.table with the value of your choice.
1 | na_replace(DT, value)
|
DT |
A data.table object. |
value |
A length-one numeric, character or factor vector indicating which value you want to use to replace |
The data.table without NAs.
1 2 3 | ## You want to replace all you NAs by 0
DT <- na_replace(DT,0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.