[Rd] Feature request: about lag(), which.min() and cat().

Matthieu Stigler stigler3 at etu.unige.ch
Thu Jan 31 14:24:07 CET 2008


Hello

I'm only user of R and have many little knowledge in programming but I 
permit to send you some whishes/suggestions for R.

which.min
like which(), which.min() should also include an argument arr.ind. Note 
that one can have it with which(a==min(a), arr.ind=TRUE) but if there is 
a reason to build a special function which.min, why not add also this 
nice argument?

lag()
If one wants to construct a time series model, it is often useful to 
have the lags matrix. This is available with embed(ts,k) but the time 
series class disappears. So it would be nice that the argument k of 
lag() also admit values of length >1, which would give the same result 
as embed() but keep the class. In his wish list of 1 January 2008 (point 
8), Gabor Grothendieck spoke about a function Lag. Maybe also a function 
lags otherwise if the idea of length(k)>1 is not good?

cat()
It would be really nice if cat() could also include matrix and lists as 
values. This would allow big improvements for output written in a file.

Thank you for what you make for R, it is a really nice program!



More information about the R-devel mailing list