fin | R Documentation |
Removes infinite and NA values from vectors, lists, matrices and data.frames.
fin(x)
x |
the object to which the function is applied |
Warning: If the given object is matrix or data.frame, any row containing infinite or NA values is removed entirely. All columns must be numeric.
the same object, with NAs and infinite values removed
fin(c(1,2,NA,3))
fin(data.frame(a=c(1,2,NA,3),b=c(4,5,6,7)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.