rmNaInf | R Documentation |
Remove rows with missing and Inf values from a matrix
rmNaInf(x)
x |
A numeric matrix. |
The updated input matrix where rows with NA and Inf values are removed.
m = matrix(rnorm(100),ncol=10)
m[1,1] = NA
m1 = rmNaInf(m)
dim(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.