From deepayan at stat.wisc.edu  Wed Feb  4 21:15:05 2004
From: deepayan at stat.wisc.edu (Deepayan Sarkar)
Date: Wed Feb  4 21:15:33 2004
Subject: [Rd] minor (possibly documentation) bug in seq
Message-ID: <200402041415.05423.deepayan@stat.wisc.edu>


With today's r-devel, help(seq) says:

     The last generates the sequence '1, 2', ..., 'length(along)',
     unless the argument is of length 1 when it is interpreted as a
     'length' argument.

referring to the usage 

     seq(along)

This is not true for 0:

> seq(0)
[1] 1 0
> seq(length = 0)
numeric(0)

I'm not sure what the intended behaviour of seq(0) is, but either seq() or the 
help page should be fixed.

Also, the exception (naturally) holds only for _numeric_ arguments of length 
1. 

Deepayan


[Rd] minor (possibly documentation) bug in seq
Deepayan Sarkar