https://github.com/cran/cutpointr
Tip revision: 94a7e298b1a50d93e8a9ccb813a070f7b30f3da1 authored by Christian Thiele on 21 March 2018, 08:27:24 UTC
version 0.7.2
version 0.7.2
Tip revision: 94a7e29
any_inf.cpp
#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
bool any_inf(NumericVector x) {
int len = x.size();
for(int i=0; i<len; i++){
if (!(std::isfinite(x[i]))) return true;
}
return false;
}