Displaying 1 result from an estimated 1 matches for "ties_method".
Did you mean:
this_method
2007 Mar 03
0
2 bugs in max.col() (PR#9542)
..._ext/Applic.h> /* NA handling */
#include <R_ext/Utils.h> /* probably not needed */
#define RELTOL 1e-5
void R_row_maxwithindex_double(
double *x
, int *nr
, int *nc
, int *narm
, int *index
, int *tiesmethod
)
{
int r, c, m, ntie, n_r = *nr, n_c = *nc, na_rm = *narm, ties_method = *tiesmethod;
double a = 0; // to avoid uninitialized compiler warning
double b, tol, small, absa;
Rboolean isna;
if (ties_method==1)
GetRNGstate();
for (r = 0; r < n_r; r++) {
/* first check row for any NAs and find the smallst entry */
small = R_PosI...