Skip to content

Instantly share code, notes, and snippets.

@hectorperez
Created January 21, 2015 14:18
Show Gist options
  • Select an option

  • Save hectorperez/bad3680808cf8fa1ff89 to your computer and use it in GitHub Desktop.

Select an option

Save hectorperez/bad3680808cf8fa1ff89 to your computer and use it in GitHub Desktop.
remove all NAs in a vector (R)
d <- d[!is.na(d)]
# http://stackoverflow.com/questions/7706876/r-script-removing-na-values-from-a-vector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment