search for: mtch

Displaying 2 results from an estimated 2 matches for "mtch".

Did you mean: mach
2023 Dec 11
1
Partial matching performance in data frame rownames using [
Dear all, I have seen that others have discussed the partial matching behaviour of data.frame[idx,] in the past, in particular with respect to unexpected results sets. I am aware of the fact that one can work around this using either match() or switching to tibble/data.table or similar altogether. I have a different issue with the partial matching, in particular its performance when used on
2023 Dec 13
1
Partial matching performance in data frame rownames using [
...+++ src/main/unique.c (working copy) > @@ -1631,6 +1631,7 @@ > } > } > > + unsigned int ic = 9999; > if(nexact < n_input) { > /* Second pass, partial matching */ > for (R_xlen_t i = 0; i < n_input; i++) { > @@ -1642,6 +1643,10 @@ > mtch = 0; > mtch_count = 0; > for (int j = 0; j < n_target; j++) { > + if (!--ic) { > + R_CheckUserInterrupt(); > + ic = 9999; > + } > if (no_dups && used[j]) continue; > if (strncmp(ss, tar[j], temp) == 0) { > mtch = j + 1;...