Created
February 23, 2011 20:09
-
-
Save wakuteka/841077 to your computer and use it in GitHub Desktop.
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
weightedMedian <-function(v){ | |
median(rep(v, times = v)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
weighted median used when you calculate N50 value.
http://seqanswers.com/forums/showthread.php?t=2332