Skip to content

Instantly share code, notes, and snippets.

@nassimhaddad
Created May 18, 2016 09:23
Show Gist options
  • Save nassimhaddad/16f4d428b644a0a610e2436c0fb50d16 to your computer and use it in GitHub Desktop.
Save nassimhaddad/16f4d428b644a0a610e2436c0fb50d16 to your computer and use it in GitHub Desktop.
function to extract non NA elements. vectorized.
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