s-news
[Top] [All Lists]

Re: order in browser mode

To: Jewel Bright <jwlbright@yahoo.com>
Subject: Re: order in browser mode
From: Alan Zaslavsky <zaslavsk@hcp.med.harvard.edu>
Date: Sat, 29 Jan 2005 22:46:48 -0500 (EST)
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <20050130013151.75139.qmail@web80906.mail.scd.yahoo.com>
References: <20050130013151.75139.qmail@web80906.mail.scd.yahoo.com>
The choices seem to be generated by a function called by browser(),
varNamesBrowser().  In the version I am using (6.2.1 for SunOS), this
includes a sort() and the choices appear in alphabetical order. If you modify varNamesBrowser() to eliminate the sort, you will get the choices in the order they appear in the frame, but this does not appear to correspond (in my experiments) to the order in which they variables are assigned, so this doesn't exactly solve your problem.

On Sat, 29 Jan 2005, Jewel Bright wrote:
Dear S-PLUS users: Recently I switched from S-PLUS-2000 to S-PLUS 6.2. Among many differences, I discovered the following one which I believe is unfortunate, (of course, if I am not missing something). It is related to the 'browser()' function. In S-PLUS 2000, when you type the question mark while in browser mode, the variable being browsed are generally ordered in the order of their assignments in your function. If for example you had two adjacent statements in your function like x<-bla1 y<-bla2 then in browser mode the variables x and y would be adjacent too.

In S-PLUS 6.2, the variables seem to be listed chaotically, neither alphabetically nor chronologically. If your function is cumbersome and contains a couple of dozen of intermediate parameters, then the search becomes a challenging task

My question: is there any logic behind ordering the variables in browser()?
Is that possible to somehow control this order?
Thank you in advance


<Prev in Thread] Current Thread [Next in Thread>