Displaying 3 results from an estimated 3 matches for "nonnullstringmatch".
2005 Sep 30
3
Subscripting fails if name of element is "" (PR#8161)
Dear all,
I resend this mail because it was blocked: I submitted a bug from the r-bug
webpage and hypatia seems to block mail that is send from a different IP
than that usually associated with the email. Looks like it is currently
impossible to correctly submit bugs from the website. However, here is the
original bug report:
(PR#8161)
Dear all,
The following shows cases where accessing
2010 Jul 15
1
Very slow subsetting by name
Hi,
I'm subsetting a named vector using character indices.
My vector of indices (or keys) is 10x longer than the vector
I'm subsetting. All my keys are distinct and only 10% of them
are valid (i.e. match a name of the vector being subsetted).
It is surprisingly slow:
x1 <- 1:1000
names(x1) <- paste("a", x1, sep="")
keys <- sample(c(names(x1),
2010 Sep 08
0
Correction to vec-subset speed patch
...j++) {
SEXP names_j = strg(names, j);
+#if 0 /* Disabled now that the "in" argument is gone; was always TRUE. */
if (!in && TYPEOF(names_j) != CHARSXP) {
ECALL(call, _("character vector element does not have type CHARSXP"));
}
+#endif
if (NonNullStringMatch(STRING_ELT(s, i), names_j)) {
sub = j + 1;
SET_VECTOR_ELT(indexnames, i, R_NilValue);
@@ -577,7 +598,7 @@
static SEXP
int_arraySubscript(int dim, SEXP s, SEXP dims, AttrGetter dng,
- StringEltGetter strg, SEXP x, Rboolean in, SEXP call)
+ StringEltGetter strg, SEXP...