Displaying 1 result from an estimated 1 matches for "sequence0".
Did you mean:
  sequence
  
2007 Jul 27
3
(PR#9811) sequence(c(2, 0, 3)) produces surprising results,
...uld only take 
a minute to write (see below).
We could make seq_len take a vector argument, but as you point out in a 
followup that makes it slower in the common case.  It also changes its 
meaning if a length > 1 vector is supplied, and would speed matter in the 
long-vector case?  What does
sequence0 <- function (nvec)
{
     s <- integer(0)
     for (i in nvec) s <- c(s, seq_len(i))
     s
}
not do that is more than a very rare need?
On Thu, 26 Jul 2007, bill at insightful.com wrote:
> Full_Name: Bill Dunlap
> Version: 2.5.0
> OS: Linux
> Submission from: (NULL) (70.98...