[Bioc-devel] Adding a lengths() method to List class
Cook, Malcolm
MEC at stowers.org
Tue Sep 29 18:33:27 CEST 2015
Yay m- thx
From: Michael Lawrence [mailto:lawrence.michael at gene.com]
Sent: Tuesday, September 29, 2015 11:16 AM
To: Cook, Malcolm <MEC at stowers.org>
Cc: Michael Lawrence <lawrence.michael at gene.com>; Peter Hickey <peter.hickey at gmail.com>; bioc-devel at r-project.org
Subject: Re: [Bioc-devel] Adding a lengths() method to List class
The plan is to move to only having lengths().
On Tue, Sep 29, 2015 at 9:02 AM, Cook, Malcolm <MEC at stowers.org<mailto: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<mailto: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