Re: [Rd] seq_along and rep_along

From: Hadley Wickham <>
Date: Fri, 06 Jan 2012 13:52:22 -0600

> I don't see the benefit of seq_along(mtcars, 1) versus seq_len(nrow(df)) in
> readability.

I like it because:

I don't think it's a huge improvement, but it is frustrating when base functionality only works with vectors, not matrices, or arrays. It would be more compelling if (e.g.) t and rev also had dimension arguments.


Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University

______________________________________________ mailing list
Received on Fri 06 Jan 2012 - 19:55:45 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 09 Jan 2012 - 00:30:07 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive