Displaying 20 results from an estimated 27 matches for "recycle0".
Did you mean:
recycle
2020 May 01
4
paste(character(0), collapse="", recycle0=FALSE) should be ""
Without 'collapse', 'paste' pastes (concatenates) its arguments elementwise (separated by 'sep', " " by default). New in R devel and R patched, specifying recycle0 = FALSE makes mixing zero-length and nonzero-length arguments results in length zero. The result of paste(n, "th", sep = "", recycle0 = FALSE) always have the same length as 'n'. Previously, the result is still as long as the longest argument, with the zero-length argume...
2020 May 15
3
paste(character(0), collapse="", recycle0=FALSE) should be ""
There is still the situation where **both** 'sep' and 'collapse' are
specified:
> paste(integer(0), "nth", sep="", collapse=",")
[1] "nth"
In that case 'recycle0' should **not** be ignored i.e.
paste(integer(0), "nth", sep="", collapse=",", recycle0=TRUE)
should return the empty string (and not character(0) like it does at the
moment).
In other words, 'recycle0' should only control the first operation (the
o...
2020 May 02
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
...rto anggono--- via R-devel
>>>>> on Fri, 1 May 2020 03:05:37 +0000 (UTC) writes:
> Without 'collapse', 'paste' pastes (concatenates) its arguments elementwise (separated by 'sep', " " by default). New in R devel and R patched, specifying recycle0 = FALSE makes mixing zero-length and nonzero-length arguments results in length zero.
That's not intended.
(It's what should only happen with the new (non-default) recycle0=TRUE )
> The result of paste(n, "th", sep = "", recycle0 = FALSE) always have the same lengt...
2020 May 22
2
paste(character(0), collapse="", recycle0=FALSE) should be ""
...>
> > There is still the situation where **both** 'sep' and 'collapse' are
> > specified:
>
> >> paste(integer(0), "nth", sep="", collapse=",")
> > [1] "nth"
>
> > In that case 'recycle0' should **not** be ignored i.e.
>
> > paste(integer(0), "nth", sep="", collapse=",", recycle0=TRUE)
>
> > should return the empty string (and not character(0) like it does at
> the
> > moment).
>
> > In other word...
2020 May 22
2
paste(character(0), collapse="", recycle0=FALSE) should be ""
...ay.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Fri, May 22, 2020 at 9:12 AM Herv? Pag?s <hpages at fredhutch.org> wrote:
> I think that
>
> paste(c("a", "b"), NULL, c("c", "d"), sep = " ", collapse = ",",
> recycle0=TRUE)
>
> should just return an empty string and don't see why it needs to emit a
> warning or raise an error. To me it does exactly what the user is asking
> for, which is to change how the 3 arguments are recycled **before** the
> 'sep' operation.
>
> The 'rec...
2020 May 15
2
paste(character(0), collapse="", recycle0=FALSE) should be ""
Totally agree with that.
H.
On 5/15/20 10:34, William Dunlap via R-devel wrote:
> I agree: paste(collapse="something", ...) should always return a single
> character string, regardless of the value of recycle0. This would be
> similar to when there are no non-NULL arguments to paste; collapse="."
> gives a single empty string and collapse=NULL gives a zero long character
> vector.
>> paste()
> character(0)
>> paste(collapse=", ")
> [1] ""
>
&g...
2020 May 22
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
I think that
paste(c("a", "b"), NULL, c("c", "d"), sep = " ", collapse = ",",
recycle0=TRUE)
should just return an empty string and don't see why it needs to emit a
warning or raise an error. To me it does exactly what the user is asking
for, which is to change how the 3 arguments are recycled **before** the
'sep' operation.
The 'recycle0' argument has no bus...
2020 May 26
2
paste(character(0), collapse="", recycle0=FALSE) should be ""
Hi Martin,
On 5/26/20 06:24, Martin Maechler wrote:
...
>
> What about remaining back-compatible, not only to R 3.y.z with
> default recycle0=FALSE, but also to R 4.0.0 with recycle0=TRUE
What back-compatibility with R 4.0.0 are we talking about? The
'recycle0' arg was added **after** the R 4.0.0 release and has never
been part of an official release yet. This is the time to fix it.
> *and* add a new option for the Suharto...
2020 May 21
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
...15 May 2020 13:44:28 -0700 writes:
> There is still the situation where **both** 'sep' and 'collapse' are
> specified:
>> paste(integer(0), "nth", sep="", collapse=",")
> [1] "nth"
> In that case 'recycle0' should **not** be ignored i.e.
> paste(integer(0), "nth", sep="", collapse=",", recycle0=TRUE)
> should return the empty string (and not character(0) like it does at the
> moment).
> In other words, 'recycle0' should only co...
2020 May 22
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
...turn an error* with non-NULL collapse should return a character vector of
length one.
Rather I'm pointing out that it could (perhaps should, imo) simply be an
error, which is also consistent, in the strict sense, with
previous behavior in that it is the developer simply declining to extend
the recycle0 argument to the full parameter space (there is no rule that
says we must do so, arguments whose use is incompatible with other
arguments can be reasonable and called for).
I don't feel feel super strongly that reeturning "" in this and similar
cases horrible and should never happen,...
2020 May 24
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
...ts a string literal tot be added
elementwise to the prefix, but what if it is another vector of length > 1.
Wouldn't it be strange that all those values are wiped and absent from the
resulting string? Maybe it's just me. like for paste(x,y,z, sep ="",
collapse = ", ", recycle0=TRUE) if length(y) is 0, it literally makes no
difference when x and z are.
I seem to be being largely outvoted anyway though, so we will see what
Martin and others who may pop up might think, but I raised the points I
wanted to raise so we'll see where things ultimately fall.
~G
>
>...
2020 May 22
5
paste(character(0), collapse="", recycle0=FALSE) should be ""
...pse should return a character
> vector of length one.
>
> Rather I'm pointing out that it could (perhaps should, imo) simply be an
> error, which is also consistent, in the strict sense, with
> previous?behavior in that it is the developer simply?declining to extend
> the recycle0 argument to the full parameter?space (there is no rule?that
> says we must do so, arguments whose use is incompatible with other
> arguments can be reasonable and called for).
>
> I don't feel feel?super strongly that reeturning?"" in this and similar
> cases horrib...
2020 May 15
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
Hi all,
This makes sense to me, but I would think that recycle0 and collapse should
actually be incompatible and paste should throw an error if recycle0 were
TRUE and collapse were declared in the same call. I don't think the value
of recycle0 should be silently ignored if it is actively specified.
~G
On Fri, May 15, 2020 at 11:05 AM Herv? Pag?s <hpage...
2020 May 28
1
paste(character(0), collapse="", recycle0=FALSE) should be ""
...es:
>>>>> Herv? Pag?s
>>>>> on Tue, 26 May 2020 12:38:13 -0700 writes:
>> Hi Martin, On 5/26/20 06:24, Martin Maechler wrote: ...
>>>
>>> What about remaining back-compatible, not only to R 3.y.z
>>> with default recycle0=FALSE, but also to R 4.0.0 with
>>> recycle0=TRUE
>> What back-compatibility with R 4.0.0 are we talking about?
>> The 'recycle0' arg was added **after** the R 4.0.0 release
>> and has never been part of an official release yet.
> Yes, of...
2020 May 15
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
I agree: paste(collapse="something", ...) should always return a single
character string, regardless of the value of recycle0. This would be
similar to when there are no non-NULL arguments to paste; collapse="."
gives a single empty string and collapse=NULL gives a zero long character
vector.
> paste()
character(0)
> paste(collapse=", ")
[1] ""
Bill Dunlap
TIBCO Software
wdunlap tibco...
2020 May 27
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
>>>>> Herv? Pag?s
>>>>> on Tue, 26 May 2020 12:38:13 -0700 writes:
> Hi Martin, On 5/26/20 06:24, Martin Maechler wrote: ...
>>
>> What about remaining back-compatible, not only to R 3.y.z
>> with default recycle0=FALSE, but also to R 4.0.0 with
>> recycle0=TRUE
> What back-compatibility with R 4.0.0 are we talking about?
> The 'recycle0' arg was added **after** the R 4.0.0 release
> and has never been part of an official release yet.
Yes, of course. It was *planned...
2020 May 24
2
paste(character(0), collapse="", recycle0=FALSE) should be ""
...'sep' operation.
>
>
> I understand what it does, I broke ti down the?same way in my post
> earlier in?the thread. the fact remains?is that it is a single function
> which significantly muddies the waters. so you can say
>
> paste0(x,y, collapse=",", recycle0=TRUE)
>
> is not a collapse operation on multiple?vectors, and of course there's a
> sense in which?you're not wrong (again I understand what these functions
> do), but it sure looks like one in the invocation, doesn't it?
>
> Honestly the thing that this whole dis...
2020 May 26
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
...>> I understand what it does, I broke ti down the?same way in my post
>> earlier in?the thread. the fact remains?is that it is a single function
>> which significantly muddies the waters. so you can say
>>
>> paste0(x,y, collapse=",", recycle0=TRUE)
>>
>> is not a collapse operation on multiple?vectors, and of course there's a
>> sense in which?you're not wrong (again I understand what these functions
>> do), but it sure looks like one in the invocation, doesn't it?
>>...
2020 May 13
2
"cd" floating in the air in the man page for paste/paste0
Hi,
While reading about the new 'recycle0' argument of paste/paste0, I
spotted a mysterious "cd" floating in the air in the man page:
recycle0: ?logical? indicating if zero-length character arguments (and
all zero-length or no arguments when ?collapse? is not
?NULL?) should lead to the zero-leng...
2020 May 13
1
"cd" floating in the air in the man page for paste/paste0
Thanks, fixed.
Tomas
On 5/13/20 5:14 AM, Dirk Eddelbuettel wrote:
> On 12 May 2020 at 19:59, Herv? Pag?s wrote:
> | While reading about the new 'recycle0' argument of paste/paste0, I
> | spotted a mysterious "cd" floating in the air in the man page:
> |
> | recycle0: ?logical? indicating if zero-length character arguments (and
> | all zero-length or no arguments when ?collapse? is not
> | ?NU...