[Rd] string concatenation operator (revisited)

2021-12-04 Thread Grant McDermott
Hi all, I wonder if the R Core team might reconsider an old feature request, as detailed in this 2005 thread: https://stat.ethz.ch/pipermail/r-help/2005-February/thread.html#66698 The TL;DR version is base R support for a `+.character` method. This would essentially provide a shortcut to `past

Re: [Rd] string concatenation operator (revisited)

2021-12-04 Thread Avi Gross via R-devel
Grant, One nit to consider is that the default behavior of pasteo() to include a space as a separator would not be a perfect choice for the usual meaning of plus. I would prefer a+b to be "helloworld" in your example and to get what you say would be a + " " + b Which I assume would put in a

Re: [Rd] string concatenation operator (revisited)

2021-12-04 Thread Rui Barradas
Hello, Bert Gunter started a very recent R-Help thread [1] about the following method not working. `+.character` <- function(x, y) paste0(x, y) The discussion is worth reading and at least partly answers to the reason why the feature request has never made it to base R. It goes without sa