search for: 45446

Displaying 4 results from an estimated 4 matches for "45446".

Did you mean: 4446
2020 Feb 19
2
dimnames incoherence?
.../R/src/main/subassign.c ] ##==> function (~ 340 lines) ## do_subassign2_dflt(SEXP call, SEXP op, SEXP args, SEXP rho) ## has " line svn r. svn auth. c.o.d.e... ---- ------ --------- ---------------------------------------------- 1741 4166 ihaka if (isNull(x)) { 1742 45446 ripley if (isNull(y)) { 1743 76166 luke UNPROTECT(2); /* args, y */ 1744 4166 ihaka return x; 1745 45446 ripley } 1746 35680 murdoch if (length(y) == 1) 1747 68094 luke x = allocVector(TYPEOF(y), 0); 1748...
2020 Feb 21
0
dimnames incoherence?
...function (~ 340 lines) > ## do_subassign2_dflt(SEXP call, SEXP op, SEXP args, SEXP rho) > ## has > " > line svn r. svn auth. c.o.d.e... > ---- ------ --------- ---------------------------------------------- > 1741 4166 ihaka if (isNull(x)) { > 1742 45446 ripley if (isNull(y)) { > 1743 76166 luke UNPROTECT(2); /* args, y */ > 1744 4166 ihaka return x; > 1745 45446 ripley } > 1746 35680 murdoch if (length(y) == 1) > 1747 68094 luke x = allocVe...
2020 Feb 19
3
dimnames incoherence?
Hi, I was bitten by a little incoherence in dimnames assignment or may be I missed some point. Here is the case. If I assign row names via dimnames(a)[[1]], when nrow(a)=1 then an error is thrown. But if I do the same when nrow(a) > 1 it's OK. Is one of this case works unexpectedly? Both? Neither? a=as.matrix(1) dimnames(a)[[1]]="a" # error: 'dimnames' must be a list
2020 Feb 22
2
dimnames incoherence?
...assign2_dflt(SEXP call, SEXP op, SEXP args, SEXP rho) >> ## has >> " >> line svn r. svn auth. c.o.d.e... >> ---- ------ --------- ---------------------------------------------- >> 1741 4166 ihaka if (isNull(x)) { >> 1742 45446 ripley if (isNull(y)) { >> 1743 76166 luke UNPROTECT(2); /* args, y */ >> 1744 4166 ihaka return x; >> 1745 45446 ripley } >> 1746 35680 murdoch if (length(y) == 1) >> 1747...