Re: [Rd] rank(, ties.method="last")

2015-10-09 Thread Martin Maechler
> I ran into a problem where I actually need rank(, ties.method="last"). It > would > be great to have this feature in base and it's also simple to get (see below). > Thanks & cheers, > Marius > rank2 <- function (x, na.last = TRUE, ties.method = c("average", > "first", "last", # new "last" >

[Rd] reverse object creation

2015-10-09 Thread Bo Werth
Dear all, this is my first message to this mailing list - please advise if it is not the right place for the subject I've been using R very intensively the last 3-4 years and one of the most tedious tasks is modification of lookup or conversion tables So far, I have not found functions that crea

Re: [Rd] reverse object creation

2015-10-09 Thread Thierry Onkelinx
Dear Bo, I think that you are looking for dput() Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kliniekstraat 25 1070 Anderlecht Belgium To call in the sta

Re: [Rd] reverse object creation

2015-10-09 Thread Thierry Onkelinx
Dear Bo, Please keep the mailing list in cc. Your function only works properly with a data.frame in which all variables are characters. dput() will preserve the structure of the object and works with all R objects. Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Rese

[Rd] Improvement of R_orderVector() via orderVector1()

2015-10-09 Thread Marius Hofert
Hi, I think R_orderVector() can be improved by calling orderVector1() if possible. In a problem we had, this gave us a run time improvement factor of 4 so my hope is that this can be included. Below is the suggested change, I'm just not 100% sure if the test "CDR(arglist) == R_NilValue" is goo

Re: [Rd] R 3.2.2 64 bit compilation error on AIX

2015-10-09 Thread Vinh Nguyen
On Oct 8, 2015 11:36 PM, "Martin Maechler" wrote: > > > Vinh Nguyen > > on Thu, 8 Oct 2015 20:21:32 -0700 writes: > > > Ahh, sorry for not googling the error message. Found > > [this]( http://r.789695.n4.nabble.com/Error-compiling-R-2-10-1-on-AIX-td1017862.html ) > > post

Re: [Rd] reverse object creation

2015-10-09 Thread Gabriel Becker
Bo, More philosophically, the dput output is more idiomatically appropriate for R. Data.frames are emphatically column-major data structures in R, by (very good) design. Best, ~G On Oct 9, 2015 3:55 AM, "Thierry Onkelinx" wrote: > Dear Bo, > > Please keep the mailing list in cc. > > Your funct

[Rd] A where() functions that does what exists() does but return the environment when object lives?

2015-10-09 Thread Henrik Bengtsson
Hi, exists("foo", inherits=TRUE) check whether an object named "foo" exists, and get("foo", inherits=TRUE) retrieves it. I'm looking for a similar function to exists() that returns the environment where the object "foo" exists, iff at all. If not found, NULL is returned. Does that exist? EXAMPL

[Rd] MiKTeX's withdrawal of texi2dvi.exe

2015-10-09 Thread Prof Brian Ripley
MiKTeX has abruptly removed texi2dvi.exe from its distribution. (MiKTeX broke its updating process earlier and an attempted update trashed the updater on my installation so I was forced to make a fresh install of the current distribution. I do not know if updates remove a currently installed