[Bioc-devel] rbind'ing for SummarizedExperiment with no rows
Aaron Lun
alun at wehi.edu.au
Sat Apr 9 12:56:08 CEST 2016
Dear List, Martin;
It looks like rbind'ing fails when the first argument is a
SummarizedExperiment with no rows:
library(SummarizedExperiment)
example(SummarizedExperiment, echo=FALSE)
rbind(se, se[0,]) # works okay; returns 'se'.
rbind(se[0,], se) # fails
# Error in rep.int(width, k) : invalid 'times' value
It might be a fairly silly example, but I would have expected it to just
give back 'se'.
Cheers,
Aaron
Here's my session information:
R version 3.3.0 beta (2016-04-08 r70447)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.4 LTS
locale:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8
[5] LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8
[7] LC_PAPER=en_GB.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats4 parallel stats graphics grDevices utils datasets
[8] methods base
other attached packages:
[1] SummarizedExperiment_1.1.23 Biobase_2.31.3
[3] GenomicRanges_1.23.25 GenomeInfoDb_1.7.6
[5] IRanges_2.5.42 S4Vectors_0.9.46
[7] BiocGenerics_0.17.4
loaded via a namespace (and not attached):
[1] zlibbioc_1.17.1 tools_3.3.0 XVector_0.11.8
More information about the Bioc-devel
mailing list