| 280 | |
| 281 | template <int RTYPE, bool NA, typename T> |
| 282 | inline typename sugar::median_detail::result<RTYPE>::type |
| 283 | median(const Rcpp::VectorBase<RTYPE, NA, T>& x, bool na_rm = false) { |
| 284 | if (!na_rm) return sugar::Median<RTYPE, NA, T, false>(x); |
| 285 | return sugar::Median<RTYPE, NA, T, true>(x); |
| 286 | } |
| 287 | |
| 288 | } // Rcpp |
| 289 |
no test coverage detected