[Rd] Add on argument in seq()
gmbecker at ucdavis.edu
Mon Jun 15 16:24:56 CEST 2015
I think the problem with that is that what you propose isn't a sequence
starting at from in any meaningful way, and thus does not satisfy the
contract of the seq function.
On Jun 15, 2015 7:12 AM, "Millot Gael" <Gael.Millot at curie.fr> wrote:
> I have a problem with the default behavior of seq(), which gives the
> argument "from" when the argument length.out = 1.
> This behavior is annoying when the number of value determine in length.out
> is not predictable.
> Would it be possible to add an argument that propose the median/mean, i.e.
> (from + to) / 2 when length.out = 1 ? Examples:
> > seq(from = 1, to = 11, length.out=1) # current method gives "from"
> > seq(from = 1, to = 11, length.out=1) # alternative method gives the
> intermediate value of "from" and "to"
> Many thanks for your help.
> Best wishes,
> Gael Millot.
> Gael Millot
> UMR 3244 (IC-CNRS-UPMC) et Universite Pierre et Marie Curie
> Equipe Recombinaison et instabilite genetique
> Pav Trouillet Rossignol 5eme etage
> Institut Curie
> 26 rue d'Ulm
> 75248 Paris Cedex 05
> tel : 33 1 56 24 66 34
> fax : 33 1 56 24 66 44
> Email : gael.millot at curie.fr
> [[alternative HTML version deleted]]
> R-devel at r-project.org mailing list
[[alternative HTML version deleted]]
More information about the R-devel