search for: collapse0

Displaying 4 results from an estimated 4 matches for "collapse0".

Did you mean: collapse
2020 May 23
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
..., 550) >?? ) > >?? vapply(snp_groups, collapse_snp_ids, character(1)) >?? #??????????? group1??????????? group2??????????? group3 >?? # "rs55,rs22,rs200"????????????? "rs"????? "rs99,rs550" > > This has hit me so many times! > > Now with 'collapse0=TRUE', we finally have the opportunity to make it do > the right thing. Let's not miss that opportunity. > > Cheers, > H. FWIW what convinces me is consistency with other aggregating functions applied to zero length inputs: sum(numeric(0)) ## [1] 0 > > > On 5/22/20 1...
2020 May 22
5
paste(character(0), collapse="", recycle0=FALSE) should be ""
...group2=integer(0), group3=c(99, 550) ) vapply(snp_groups, collapse_snp_ids, character(1)) # group1 group2 group3 # "rs55,rs22,rs200" "rs" "rs99,rs550" This has hit me so many times! Now with 'collapse0=TRUE', we finally have the opportunity to make it do the right thing. Let's not miss that opportunity. Cheers, H. On 5/22/20 11:26, Gabriel Becker wrote: > I understand that this is consistent but it also strikes me as an > enormous 'gotcha' of a magnitude that 'we...
2020 May 24
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
...0) > ) > > vapply(snp_groups, collapse_snp_ids, character(1)) > # group1 group2 group3 > # "rs55,rs22,rs200" "rs" "rs99,rs550" > > This has hit me so many times! > > Now with 'collapse0=TRUE', we finally have the opportunity to make it do > the right thing. Let's not miss that opportunity. > I see what you're saying, but I don' know. Maybe my intuition is just different but when I collapse multiple character vectors together, I expect all the characters from...
2020 May 22
2
paste(character(0), collapse="", recycle0=FALSE) should be ""
I agree with Herve, processing collapse happens last so collapse=non-NULL always leads to a single character string being returned, the same as paste(collapse=""). See the altPaste function I posted yesterday. 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 > >