[Bioc-devel] help
Martin Morgan
mtmorg@n@b|oc @end|ng |rom gm@||@com
Tue Feb 11 21:52:23 CET 2020
`sapply()` implies that you expect the result to be _s_implified, which implies that all your elements are the same length. Sounds like you want to use `lapply()` instead, to signal that it will *not* be simplified, even if by chance the elements are the same length.
Martin
On 2/11/20, 3:51 PM, "Bioc-devel on behalf of Mohsen Nabian" <bioc-devel-bounces using r-project.org on behalf of mnabian using broadinstitute.org> wrote:
" Avoid sapply(); use vapply()"
Hi, This is a Note I received from BiocCheck()
I tried to change my sapply functions to vapply; however, vapply requires
knowing the exact length of the vector(list), however, my vector length are
not static and variable. Therefore, vapply may not be of use for me in
those cases. Is there any solution for it? Or shall I ignore the Note?
Many thanks,
Mohsen
[[alternative HTML version deleted]]
_______________________________________________
Bioc-devel using r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel
More information about the Bioc-devel
mailing list