Re: [Rd] Add-on argument in sample()

2015-06-18 Thread Radford Neal
William Dunlap writes: > I don't like the idea of having a length-1 dim attribute trigger some > behavior of sample. (Should a length-2 dim cause it to sample > rows of a matrix, as unique() and duplicated() do?). I wasn't too clear. I would want any dim attribute on its first argument to cause

Re: [Rd] Improving string concatenation

2015-06-18 Thread Radford Neal
Gabor Csardi writes: > Btw. for some motivation, here is a (surely incomplete) list of > languages with '+' as the string concatenation operator: > > ALGOL 68, BASIC, C++, C#, Cobra, Pascal, Object Pascal, Eiffel, Go, > JavaScript, Java, Python, Turing, Ruby, Windows Powers hell, > Objective-C, F

Re: [Rd] Improving string concatenation

2015-06-18 Thread Hervé Pagès
Hi Joshua, On 06/17/2015 11:24 AM, Joshua Bradley wrote: How would this new '+' deal with factors, as paste does or as the current '+' does? Would number+string and string+number cause errors (as in current '+' in R and python) or coerce both to strings (as in current R:paste and in perl's '

Re: [Rd] Improving string concatenation

2015-06-18 Thread MacQueen, Don
At the risk of unnecessarily (annoyingly?) prolonging a conversation that has died down... I don't think I've seen the sep or collapse arguments to paste mentioned as aspects to consider. I don't see any way in which this version of '+' could offer those arguments. Hence I would consider this vers

Re: [Rd] Add-on argument in sample()

2015-06-18 Thread Jon Skoien
On 6/18/2015 12:25 AM, Hervé Pagès wrote: Hi, Special behavior of sample(x, ...) when length(x) is 1 is of course a bad feature. I think it pre-dates sample.int() which is what people should use these days if they want the behavior of sample(x, ...) when length(x) is 1. And because we now have

Re: [Rd] Bugzilla activity?

2015-06-18 Thread Milan Bouchet-Valat
Le mercredi 17 juin 2015 à 07:58 -0300, Duncan Murdoch a écrit : > On 16/06/2015 4:18 PM, Milan Bouchet-Valat wrote: > > Hi! > > > > I was wondering whether anybody was looking at the bugs on Bugzilla. I'm > > asking because I've seen bugs tackled on the mailing list quite quickly, > > but two ful

Re: [Rd] Bugzilla activity?

2015-06-18 Thread Milan Bouchet-Valat
Le mardi 16 juin 2015 à 22:02 +0200, Joris Meys a écrit : > Hi Milan, > > > > I can't reproduce your first bug in R 3.2 on Windows 8.1, and I fail > to reproduce that one in R 3.1.2 as well. So that might explain why > that one isn't tackled. Actually, I'm not able to reproduce the two first is