[Rd] all.names() and all.vars(): sorting order of functions' return vector

2006-10-27 Thread Pfaff, Bernhard Dr.
Dear list-subscriber, in the process of writing a general code snippet to extract coefficients in an expression (in the example below: 0.5 and -0.7), I stumbled over the following peculiar (at least peculiar to me:-) ) sorting behaviour of the function all.names(): expr1 - expression(x3 = 0.5 *

Re: [Rd] all.names() and all.vars(): sorting order of functions' return vector

2006-10-27 Thread Gabor Grothendieck
Rewrite expr2 - expression(x3 - 0.5 * x1 - 0.7 * x2) like this: expression(`-`(x3, `-`(`*`(0.5, x1), `*`(0.7, x2 and it becomes clear. On 10/27/06, Pfaff, Bernhard Dr. [EMAIL PROTECTED] wrote: Dear list-subscriber, in the process of writing a general code snippet to extract