Created
May 18, 2016 09:23
-
-
Save nassimhaddad/16f4d428b644a0a610e2436c0fb50d16 to your computer and use it in GitHub Desktop.
function to extract non NA elements. vectorized.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nonNa <- function(x)Filter(Negate(is.na), x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment