Skip to content

Instantly share code, notes, and snippets.

@mhkeller
Created October 16, 2012 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhkeller/3897067 to your computer and use it in GitHub Desktop.
Save mhkeller/3897067 to your computer and use it in GitHub Desktop.
Replace NAs with 0s
df[is.na(df)] <- 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment