Displaying 4 results from an estimated 4 matches for "rs22".
Did you mean:
rc22
2020 May 23
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
...ollapse=",")
>
>?? snp_groups <- list(
>???? group1=c(55, 22, 200),
>???? 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.
FWIW what con...
2020 May 22
5
paste(character(0), collapse="", recycle0=FALSE) should be ""
...t;rs", snp_ids, sep="", collapse=",")
snp_groups <- list(
group1=c(55, 22, 200),
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 u...
2020 May 24
0
paste(character(0), collapse="", recycle0=FALSE) should be ""
...",")
>
> snp_groups <- list(
> group1=c(55, 22, 200),
> 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.
>
I see what you're saying, but...
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
>
>