Skip to content

ebird/fastmedian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastmedian

An optimized median function that uses C++ code to quickly calculate the median of a numeric vector after removing NA values.

library(fastmedian)
med(1:4)
#> [1] 2.5
med(c(1:3, 100, 1000))
#> [1] 3
med(c(NA_real_, 1:3, 100, NA_real_, 1000, NA_real_))
#> [1] 3

About

Fast Median Function Using C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published