search for: pcompare

Displaying 3 results from an estimated 3 matches for "pcompare".

Did you mean: compare
2020 May 24
2
paste(character(0), collapse="", recycle0=FALSE) should be ""
...rsally adopted in R 11.0.0 ;-) So if we have to do with what we have IMO (1) is the scheme that makes most sense although I agree that it can do some surprising things for some unusual combinations of vector lengths. It's the scheme I adhere to in my own binary operations e.g. in S4Vector::pcompare(). The modest proposal of the 'recycle0' argument is only to let the user switch from recycling scheme (2) to (1) if they're not happy with scheme (2) (I'm one of them). Switching to scheme (3) or to a new custom scheme would be a completely different proposal. > > At le...
2020 May 26
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
...> So if we have to do with what we have IMO (1) is the scheme that makes > most sense although I agree that it can do some surprising things for > some unusual combinations of vector lengths. It's the scheme I adhere to > in my own binary operations e.g. in S4Vector::pcompare(). > The modest proposal of the 'recycle0' argument is only to let the user > switch from recycling scheme (2) to (1) if they're not happy with scheme > (2) (I'm one of them). Yes, indeed. This was the purpose of introducing 'recycle0'. Now, with...
2020 May 24
2
paste(character(0), collapse="", recycle0=FALSE) should be ""
On 5/23/20 17:45, Gabriel Becker wrote: > Maybe my intuition is just > different?but when I collapse multiple character vectors together, I > expect?all the characters from each of those vectors to be in the > resulting collapsed one. Yes I'd expect that too. But the **collapse** operation in paste() has never been about collapsing **multiple** character vectors together.