Replaces NA and NaN values in dt[vars]
. Will add a new level to factors.
1 2 |
dt |
dataset of class 'data.table' or 'data.frame' |
naReplaceNumber |
replacement number for numerics. |
naReplaceCharacter |
replacement string for characters and factors. |
inPlace |
should the entire dataset be returned, or just the variables in |
verbose |
Print results? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.