[Rd] Suggest patch for princomp.formula and prcomp.formula

2006-03-25 Thread Berwin A Turlach
Dear all, perhaps I am using princomp.formula and prcomp.formula in a way that is not documented to work, but then the documentation just says: formula: a formula with no response variable. Thus, to avoid a lot of typing, it would be nice if one could use '.' and '-' in the formula, e.g.

[Rd] Suggestion: Slightly Clearer Error Message

2006-03-25 Thread ivo welch
dear R developers: May I suggest that you enhance the error message: Error in "[<-"(`*tmp*`, , curcol, value = c(0.0198881080712288, 0.00889721376726782, : number of items to replace is not a multiple of replacement length with information about why this is the case? For example,

Re: [Rd] Help please: please test timestamping of command history

2006-03-25 Thread Martin Maechler
Hi Duncan, I think all ESS users don't use history() because ESS calls R with "--no-readline" (Unix) or "--ess" (Windows & Cygwin) I'd wish that in that case, and probably also in BATCH mode, timestamp() should write the time stamp prefixed by "##" to the "R console" (to R's stdout); when

Re: [Rd] Help please: please test timestamping of command history

2006-03-25 Thread Duncan Murdoch
On 3/25/2006 11:30 AM, Martin Maechler wrote: > Hi Duncan, > > I think all ESS users don't use history() because ESS calls R > with "--no-readline" (Unix) > or "--ess" (Windows & Cygwin) > > I'd wish that in that case, and probably also in BATCH mode, > timestamp() should write the time st

[Rd] gsub(replacement="\\X") -> "X", not "\\X"

2006-03-25 Thread Bill Dunlap
I would have thought that all 4 of the following would give the same result (the first): > gsub("backslash-X", "\\X", "this is a backslash-X", fixed=T) [1] "this is a \\X" > gsub("backslash-X", "\\X", "this is a backslash-X", extended=F) [1] "this is a X" > gsub("backslash-X", "\\X",

Re: [Rd] How to capture t-score and p-values from t.test

2006-03-25 Thread Kjetil Brinchmann Halvorsen
Bernzweig, Bruce (Exchange) wrote: > When I do t.test on two distributions (see example below), it outputs > numerous data about the t.test. > > What I'd like to do is individually capture some of this data and assign > it to other variables. > > However, I am unable to find anything in the help

Re: [Rd] Undocumented features of 'browser' (and possible changes)

2006-03-25 Thread Charles C. Berry
On Fri, 24 Mar 2006, Kevin Wright wrote: > I often use browser() when debugging a function. After entering > browser, I would find it very useful to be able to cut-and-paste a > chunk of R code to the browser (or use ess-eval-region in Emacs). An > inconvenience, however, is that both blank line