| 330 | } |
| 331 | |
| 332 | static std::shared_ptr<arrow::compute::ScalarAggregateOptions> NaRmOptions(bool na_rm) { |
| 333 | auto options = std::make_shared<arrow::compute::ScalarAggregateOptions>( |
| 334 | arrow::compute::ScalarAggregateOptions::Defaults()); |
| 335 | options->min_count = 0; |
| 336 | options->skip_nulls = na_rm; |
| 337 | return options; |
| 338 | } |
| 339 | |
| 340 | template <bool Min> |
| 341 | static SEXP MinMax(SEXP alt, Rboolean narm) { |
nothing calls this directly
no test coverage detected