na2zero | R Documentation |
Set na to 0
na2zero(x)
x |
matrix of values for which na values should be changed to 0 |
matrix, where na values are set to 0
x <- matrix(sample(0:10, 5000, replace = TRUE), ncol = 25) x[sample(1:5000, 10)] <- NA na2zero(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.