Skip to content
Prev 38671 / 63424 Next

faster base::sequence

Hi Romain,

FWIW I see at least 2 small differences in the way sequence_c()
behaves with respect to good old sequence(): zeros and names.

 > sequence(c(a=5, b=0, c=2))
a1 a2 a3 a4 a5 c1 c2
  1  2  3  4  5  1  2

sequence_c() ignores the names and doesn't support zeros in the input.

Cheers,
H.
On 11/28/2010 01:56 AM, Romain Francois wrote: