Skip to content

Instantly share code, notes, and snippets.

@wakuteka
Created February 23, 2011 20:09
Show Gist options
  • Save wakuteka/841077 to your computer and use it in GitHub Desktop.
Save wakuteka/841077 to your computer and use it in GitHub Desktop.
weightedMedian <-function(v){
median(rep(v, times = v))
}
@wakuteka
Copy link
Author

weighted median used when you calculate N50 value.
http://seqanswers.com/forums/showthread.php?t=2332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment