[Bioc-devel] Adding a lengths() method to List class

Michael Lawrence lawrence.michael at gene.com
Tue Sep 29 18:16:12 CEST 2015


The plan is to move to only having lengths().

On Tue, Sep 29, 2015 at 9:02 AM, Cook, Malcolm <MEC at stowers.org> wrote:

> Dumb question (?) follows in line:
>
> > That is the plan. Note that we already have elementLengths() that serves
> the
>  > same purpose. It was the direct inspiration for lengths().
>
> Why have both?
>
>  >
>  > On Mon, Sep 28, 2015 at 9:41 PM, Peter Hickey <peter.hickey at gmail.com>
>  > wrote:
>  >
>  > > The lengths() function was added in R 3.2 to "get the length of each
>  > > element of a list or atomic vector (is.atomic) as an integer or
>  > > numeric vector." It seems useful to me to have also a similar method
>  > > defined for the S4Vectors::List class (and subclasses). What do
> others think?
>
>
>

	[[alternative HTML version deleted]]



More information about the Bioc-devel mailing list